on 03-21-2006 5:53 AM
Hi all,
Have a small problem. I have a an html form that calls a servelt from its action line e.g.
<FORM name="passwordReset" ACTION="/ZChangePassword/mainServlet"
For some reason I'm getting the "The requested resource does not exist" error when I hit submit. I've checked my web.xml file and all looks ok e.g.
<web-app>
<display-name>DoC-Change-Password</display-name>
<description>This web appplication allows users to reset their SAP passwords</description>
<servlet>
<servlet-name>ZChangePassword</servlet-name>
<servlet-class>changepassword.ZChangePassword</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ZChangePassword</servlet-name>
<url-pattern>/ZChangePassword/mainServlet</url-pattern>
</servlet-mapping>
</web-app>
Can anybody see what I'm doing wrong?
Many thanks
Hi,
Give the classname like this and check.
<servlet-name>ZChangePassword</servlet-name>
<servlet-class>>/ZChangePassword/mainServlet</servlet-class>
</servlet>
Regds,
Giri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
<FORM name="passwordReset" ACTION="/ZChangePassword/mainServlet"
This line the ACTION part should contain the complete path of the servlet file.check with the path again i hope it will help you.
Thanks
Mrutyunjaya Tripathy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check the package name of your servlet. If the package name is "com.changepassword", then the servlet-class tag should be
<servlet-class>com.changepassword.ZChangePassword</servlet-class>.
Regards,
Uma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Luke,
u just try the servlet name itself in place of action instead of the mapped name...
for example if ur servlet name is <b>ExampleServlet.</b>
then try ...
ACTION="ExampleServlet"
Regards
Kishor Gopinathan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.