About Question enthuware.jwpv6.2.680 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
gurpreet_asrgndu
Posts: 55
Joined: Thu Jan 03, 2013 7:51 am
Contact:

About Question enthuware.jwpv6.2.680 :

Post by gurpreet_asrgndu »

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.

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.680 :

Post by admin »

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!

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests