Thanks guys for the help. The issue got resolved once I changed the POST action value to be the same as the value in the pattern.

Just to make sure I understand the web.xml config better and to make sure I do the right thing in the future when I have to add additional servlets or such:

   * servlet name tag in the servlet tag and servlet-mapping tag should
     be the same.
   * The value of the url-pattern, welcome-file and the action value in
     the form tag should be all the same
   * I should have one set of servlet, servlet-mapping and welcome file
     for every servlet I use
   * I should never use "/" as a pattern because that is what Tomcat
     uses for static resources.
   * Can I have a url-pattern /foobar/foo2bar?

Please correct me if any of the above is wrong.

Thanks...Ram
-----------------------------------------------------------------------------------------------------------------------------------------------------------

Mike Curwen wrote:

but it's more than just "take away the package".

If you map your servlet to this:
<url-pattern>/foobar</url-pattern>

then your form should say :
<form method="POST" action="foobar">

(I just didn't want anyone to think that you invoke a servlet by calling
it's class name).

so in fact, you want bizDispathcer (no capital b).





-----Original Message-----
From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, December 16, 2004 5:57 AM
To: Tomcat Users List
Subject: Re: Display of Static Resources



<form method="POST" action="com.client.BizDispatcher">

Take the package name out of the action attribute.
<form method="POST" action="BizDispatcher">



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





Reply via email to