InfoCenter Home >
4: Developing applications >
4.2: Building Web applications >
4.2.2: Developing JSP files >
4.2.2.2: JSP support and environment in WebSphere >
4.2.2.2.1: JSP support for separating logic from presentation

4.2.2.2.1: JSP support for separating logic from presentation

Two interfaces support the JSP technology. These APIs provide a way to separate content generation (business logic) from the presentation of the content (HTML formatting).

This separation enables servlets to generate content and store the content (for example, in a bean) in the request object. The servlet that generated the context generates a response by passing the request object to a JSP file that contains the HTML formatting. The <BEAN> tag provides access to the business logic.

The <useBEAN> tag provides access to the business logic.

Goal Interface
Set attributes in the request object. javax.servlet.http.HttpServletRequest.setAttribute()
Forward a response object to another servlet or JSP file. javax.servlet.http.RequestDispatcher.forward()

In IBM WebSphere Application Server Version 2.0x, these interfaces had different names. You might need to migrate code that is calling the old interfaces. See the Related information for details.

Go to previous article: JSP support and environment in WebSphere Go to next article: JSP processors

 

 
Go to previous article: JSP support and environment in WebSphere Go to next article: JSP processors