Multiple choice technology web technology

Which J2EE technology would you use to replace Perl/PHP scripts in the solution described below? MegaSoft Inc. has a web-based legacy business-to-business sales system. The solution consists of Perl and PHP scripts (presentation and business logic) and a MSSQL database. Customers logon to the site, browse for the latest products and prices, and place orders with MegaSoft. Choose one answer.

  1. Applets

  2. JSP

  3. JSP/Servlets

  4. JSP/Servlets and EJBs

  5. You would never replace PHP scripts with a J2EE technology

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Replacing Perl and PHP scripts which contain both presentation and business logic requires a multi-layered J2EE architecture. JSP and Servlets handle the dynamic web presentation layer, while Enterprise JavaBeans (EJBs) manage the business logic and transaction processing, communicating with the database. Using JSPs/Servlets alone would lack a dedicated business logic tier.