This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes jsp not mapping.Why Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "jsp not mapping.Why" Watch "jsp not mapping.Why" New topic
Author

jsp not mapping.Why

Vilas Lawande
Ranch Hand

Joined: Nov 07, 2006
Posts: 127
Hi ranchers,
Jsp is internally converted to servlet.
Why not requirement to of mapping?
Would it automatically did servlet mapping for corresponding jsp file?
If yes, where that code is present ?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

For example, if you look at Tomcat's default web.xml (conf/web.xml), you'll see that it already maps all *.jsp and *.jspx requests to one of its own servlets called "jsp".


[My Blog]
All roads lead to JavaRanch
Vilas Lawande
Ranch Hand

Joined: Nov 07, 2006
Posts: 127
<!-- JSPC servlet mappings start -->

<servlet>
<servlet-name>org.apache.jsp.index_jsp</servlet-name>
<servlet-class>org.apache.jsp.index_jsp</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>org.apache.jsp.index_jsp</servlet-name>
<url-pattern>/index.jsp</url-pattern>
</servlet-mapping>

<!-- JSPC servlet mappings end -->


Do you means these code?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: jsp not mapping.Why
 
Similar Threads
how to give jsp page in href
how to get jsp init params
Accessing the Servlet Init parameters in jsp
Tomcat 5.5 and jspx
Servlet virtual path