2013年12月16日星期一

Configure the servlet mistake !


error message above , servlet-name can not be found , how could this be .
------ Solution ---------------------------------------- ----
though you just cut a figure , but I saw one of your misspelled
------ Solution ------- -------------------------------------
to your .. < ;/ servlet> change
  <servlet>
   <servlet-name>HandleRegister</servlet-name>
   <servlet-class>myservlet.HandleRefister</servlet-class>
  </servlet>
  <servlet-mapping>
   <servlet-name>HandleRegister</servlet-name>
   <url-pattern>/HandleRegister</url-pattern>
  </servlet-mapping>
remember the servlet and servlet-mapping is a parallel relationship , the relationship is not included
------ Solution ------------------------ --------------------
hand wrong letter by mistake
  <servlet>
   <servlet-name>HandleRegister</servlet-name>
   <servlet-class>myservlet.HandleRegister</servlet-class>
  </servlet>
  <servlet-mapping>
   <servlet-name>HandleRegister</servlet-name>
   <url-pattern>/HandleRegister</url-pattern>
  </servlet-mapping>

------ For reference only ----------------------------------- ----

and wrong, just one floor of a friend corrected my spelling mistake
The carefully check spelling , should be right up . . Why servlet-mapping can not find it
this have any special requirements you

没有评论:

发表评论