the explanation in the simulator is as below
<servlet> <!-- One such tag per servlet -->
<servlet-name>catalog</servlet-name> <!-- this is the name that will be used to refer to this servlet in this DD.
Usually, it is also used in the browser's URL eg. http://www.abcinc.com/servlet/catalog?action=show -->
<servlet-class>com.mycorp.CatalogServlet</servlet-class> <!-- This is the class name that implements the servlet. -->
<init-param> <!-- One for each parameter needed to initialize the servlet. -->
<param-name>param1</param-name>
<param-value>value1</param-value>
</init-param>
</servlet>
in the comment it is written that the name of teh servlet is also used in the browser's URL. i tested with tomcat and it does not pick servlet name. also nothing is written in the specs regarding this.
About Question enthuware.jwpv6.2.680 :
Moderators: Site Manager, fjwalraven
-
- Posts: 55
- Joined: Thu Jan 03, 2013 7:51 am
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.680 :
Actually, the explanation says "usually" and it was true for several containers (including tomcat) because that allows you the invoke the servlet without explicitly configuring url-patterns it in web.xml Aparantly, tomcat has stopped doing that.
But your are right. This is not as per specification. This has now been noted in the explanation.
thank you for your feedback!
But your are right. This is not as per specification. This has now been noted in the explanation.
thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 4 guests