Introducing Frameworks - JSP

Many frameworks are around to help with the building of Web applications using the Model 2 architecture.These include

  • Jakarta Struts
  • JavaServer Faces
  • Web Application Framework (WAF) from the J2EE BluePrints

So, what exactly are these frameworks, and why should you be interested in using one? In summary, these frameworks provide the following:

  • A controller servlet.
  • An ‘action’ class of some description that can be subclassed, providing classes that invoke your business logic.
  • Tag libraries to help with the building of HTML forms and Web page templates.
  • Various utility classes to enable you to put much of the configuration of your application into external XML files rather than hard-coded into your application.

The benefits you get from using one of these frameworks are as follows:

  • The infrastructure for your Web application is ready-made, thus reducing your development time.
  • Various framework-specific modules that have been developed by third parties can be used within your Web applications.
  • A framework will help you to use a good design for your application; for some frameworks, there is strong community support available.
  • There is also increasing interest from the tool community in these frameworks. Tool support should also reduce your development time.
  • It should reduce your costs in training staff because individuals who have learned a framework can reuse the skills in multiple projects.

These benefits are over and above those already listed for using a Model 2 architecture approach. In this chapter, we will focus mainly on the Struts framework from Jakarta.This framework is very popular within the developer community and is already being used in real-world applications.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

JSP Topics