aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes jsp not mapping.Why Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
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: 14688
    
  16

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://aspose.com/file-tools
 
subject: jsp not mapping.Why