Simple J2EE application


In our simple J2EE application,the customer visits a web page (JSP). The request is sent to the web server then passed to the JSP and Servlet engine. The JSP code is executed including a search on the database. The database results are returned to the JSP page. The JSP page dynamically generates a HTML page with the data and sends it to the Customer




simple JSP diagram


 




Advantages.
• Simple of understand and initially develop.


Disadvantages.
• The JSP page is very difficult to maintain. It contains HTML and Java code with queries to the database. The business logic should not be in the JSP; otherwise many pages will need to be changed every time business requirements change.
• Need to have data connectivity code in every JSP page.
• Does not scale up very well.
• Security issues - If a hacker gained access to the web server,all the confidential business logic can be read by opening the JSP files.


                    

Copyright © 2012 VisualBuilder. All rights reserved