InfoCenter Home >
4: Developing applications >
4.2: Building Web applications >
4.2.4: Putting it all together (Web applications) >
4.2.4.4: Providing ways for clients to invoke applications >
4.2.4.4.1: Providing Web clients access to JSP files >
4.2.4.4.1.3: Invoking JSP files within other JSP files

4.2.4.4.1.3: Invoking JSP files within other JSP files

An application developer can enable users to invoke a JSP file from within another JSP file. Within the first JSP file, the developer should use one of the following methods for invoking the second JSP file:

  • Specify the URL of the second JSP file on the FORM ACTION attribute.
  • Specify the URL of the second JSP file on the anchor tag HREF attribute(<a href="JSP_URL">).
  • Use the javax.servlet.http.RequestDispatcher.forward() method to invoke the second JSP file.
  • Use the jsp:forward and jsp:include elements.

Go to previous article: Example: Invoking servlets within HTML forms Go to next article: Providing Web clients access to servlets

 

 
Go to previous article: Example: Invoking servlets within HTML forms Go to next article: Providing Web clients access to servlets