aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes really simple servlets,but why second one not work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "really simple servlets,but why second one not work" Watch "really simple servlets,but why second one not work" New topic
Author

really simple servlets,but why second one not work

vitesse wei
Ranch Hand

Joined: Sep 07, 2007
Posts: 100
I write two servlets as belows:
--------------------------------------------------------

-----------------------------------------------

------------------------------------------------------
and web.xml file
------------------------------------------------------

---------------------------
problem is when I request first servlet,it works fine,but second one is not,it says "HTTP method GET is not supported by this URL",but i have doGet in my second servlet,I shaped two examples almost same,but still can not fix it,my container is Apache Tomcat 5.0.27,any idea?thanks advance!


SCJP 5.0<br />SCWCD1.4<br />SCBCD5
vitesse wei
Ranch Hand

Joined: Sep 07, 2007
Posts: 100
thanks for view,after several times deploys,tomcat finally make second one work,mabey some cache in tomcat,but i did see that tomcat restart my apps context in its terminal every time i redeploy my app!?
Brijesh shah
Ranch Hand

Joined: Mar 16, 2007
Posts: 90
I hope you have given proper path in <servlet-class> tag..

If path is correct and doesn't work then delete all the files from
Tomcat 5.5\work\Catalina\localhost and restart your server.

It will work.

Regards,
Brijesh
 
jQuery in Action, 2nd edition
 
subject: really simple servlets,but why second one not work