Thank-you.
Ben Souther wrote:
* servlet name tag in the servlet tag and servlet-mapping tag should
be the same.
Yes the servlet tag in web.xml is where you define the servlet's name.
* The value of the url-pattern, welcome-file and the action value in
the form tag should be all the same
Yes, the url-pattern in the mapping tag of your web.xml file defines the string that a browser would need to send in order to invoke your servlet.
* I should have one set of servlet, servlet-mapping and welcome file
for every servlet I use
NO. The welcome file is the default file. (ex: index.html, or index.jsp) If you want your servlet to be the default servlet for your app, this is where to set it up.
* I should never use "/" as a pattern because that is what Tomcat
uses for static resources.
Yes. (unless you want to handle all the default behavior..)
* Can I have a url-pattern /foobar/foo2bar?
Yes.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
