我刚开始研究petstore,用jb9来跟踪petstore?一个简单的问题请教大家!

03-08-16 aiguostudy
index.jsp中enter the petstore中连接的是main.screen,我建了TemplateServlet,(源代码不变)但跟踪时他为什么不进去?我在web.xml中写了

<web-app>

<servlet>

<servlet-name>templateservlet</servlet-name>

<servlet-class>petstore.TemplateServlet</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>TemplateServlet</servlet-name>

<url-pattern>*.screen</url-pattern>

</servlet-mapping>

<servlet-mapping>

<servlet-name>templateservlet</servlet-name>

<url-pattern>/templateservlet</url-pattern>

</servlet-mapping>

</web-app>

请高手指点!非常感谢!

猜你喜欢