Where Do JSPs Fit into a Web Application?
The JSPs need to be placed below the root directory of the Web application, in a manner similar to HTML pages as shown in Listing 17.1. The JSP placed below the WEB-INF directory will not be directly accessible by the Web client, but servlets or other JSPs can still forward client requests to them as needed. After the JSP files are added, the Web application can be used with the additional requirement that the Web server have access to submit the JSPs to a JSP container for execution and translation into servlets.
Listing 17.1. Web Application Containing a JSP
(Document Root) chalktalkweb/ chalktalkweb/login.jsp chalktalkweb/index.html chalktalkweb/WEB-INF/ chalktalkweb/WEB-INF/web.xml chalktalkweb/WEB-INF/classes/ ... |
Get Borland® JBuilder™ Developer’s Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.