<FORM METHOD="GET" ACTION="auditor">
Shruti Ahuja, Noida wrote:
Hi,
I have deployed a web appplication whose context name is graduate . It has 2
servlets(named auditor and blobserve) in it placed in the Web-inf/classes
directory . I have mapped the 2 servlets in web.xml as follows -
<servlet>
<servlet-name>auditor</servlet-name>
<servlet-class>auditor</servlet-class>
</servlet>
<servlet>
<servlet-name>blobserve</servlet-name>
<servlet-class>blobserve</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>auditor</servlet-name>
<url-pattern>/auditor</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>blobserve</servlet-name>
<url-pattern>/blobserve</url-pattern>
</servlet-mapping>
Now, i wish to invoke the auditor servlet in the jsp page as follows -
<FORM METHOD="GET" ACTION="/auditor"> The above does not work . When called it removes the context name from the
URL .
However , the following works -
<FORM METHOD="GET" ACTION="servlet/auditor">
What should i change in the web.xml or the jsp page so that i can invoke the
servlet without the /servlet clause.
Pls suggest ..
Thanks
Shruti.
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
-- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
