About Question enthuware.jwpv6.2.680 :
Posted: Thu Jan 10, 2013 12:32 pm
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.
<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.