thank u.

sorry, i leave that small question .
i have change that,but it doesnot work .
i use tomcat 7.0 and eclipse ee IDE.

here is the list i have changeed

<https://lh5.googleusercontent.com/_FZA9HE6V63w/TaPQpB4NxgI/AAAAAAAAAX4/VINUVQtAQp0/QQ%E6%88%AA%E5%9B%BE%E6%9C%AA%E5%91%BD%E5%90%8D.png>


  when i use http://localhost/question/here/ha
it shows javax.servlet.ServletException: No servlet class has been specified 
for servlet here
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1056)
at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:813)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:135)

but when i use http://localhost/question/togo/haha  it woks,





<https://lh5.googleusercontent.com/_FZA9HE6V63w/TaPRvK-VxII/AAAAAAAAAX8/usEZH3zMQJE/QQ%E6%88%AA%E5%9B%BE%E6%9C%AA%E5%91%BD%E5%90%8D.png>

i have changeed 
// example.jsp
</head>
<body>
  <%@taglib uri="/WEB-INF/example.tld" prefix="myExample"%>
  here: <myExample:example/>
</body>
</html>
it gets

org.apache.jasper.JasperException: /example.jsp(11,8) No tag "example" 
defined in tag library imported with prefix "myExample" 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41)
 
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)

but i have defineded it as you see.

i think the question is my web.xml cannot catch jsp file, ididnot know why.

the servlet-class,filter,error-page tag all work.

that's it.


-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to