Try adding the following to your web.xml <servlet> <servlet-name>ShowParameters</servlet-name> <servlet-class>ShowParameters</servlet-class> <!-- assumes your ShowParameters.class is not in a package --> </servlet> <servlet-mapping> <servlet-name>ShowParameters</servlet-name> <url-mapping>/ShowParameters</url-mapping> </servlet-mapping>
NOTE: The <servlet> tags must appear before your <servlet-mapping> tags Your servlet is now mapped to the /ShowParameters URI, so your action attribute is correct. This is the preferred way to map your servlets. Alternatively, if you uncomment this part of your web.xml: <servlet-mapping> <servlet-name>invoker</servlet-name> <url-pattern>/servlet/*</url-pattern> </servlet-mapping> Then you have already mapped /servlet/* to the invoker servlet, so you can then set your action to "/servlet/ShowParameters". However, it opens a security hole if you use this second approach. -----Original Message----- From: Lenandlar Singh [mailto:[EMAIL PROTECTED] Sent: 22 July 2003 15:17 To: Tomcat Users List Subject: RE: Problem with Dir Structure... <!-- The mapping for the default servlet --> <servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> <!-- The mapping for the invoker servlet --> <!-- <servlet-mapping> <servlet-name>invoker</servlet-name> <url-pattern>/servlet/*</url-pattern> </servlet-mapping> --> "Bodycombe, Andrew" <[EMAIL PROTECTED]> wrote: It depends on your servlet mapping in the web.xml file. -----Original Message----- From: Lenandlar Singh [mailto:[EMAIL PROTECTED] Sent: 22 July 2003 14:57 To: [EMAIL PROTECTED] Subject: Problem with Dir Structure... Hello, I have the following directory structure for an application under Tomcat 4.1. c:\Tomcat 4.1\webapps\testapp\postform.html & c:\Tomcat 4.1\webapps\testapp\Web-inf\classes\ShowParameters.class where testapp is my application directory. How do i set the path for the "Action" attribute in postform.html? My Action is action = "/ShowParameters Thanks. Len. --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]