| 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
|
|
|
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?
|
 |
 |
|
|
subject: jsp not mapping.Why
|
|
|