• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp not mapping.Why

 
Vilas Lawande
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".
 
Vilas Lawande
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<!-- 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic