URL for Test servlet.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, March 23, 2004 05:37 AM




com/TestServlet

com.TestServlet

1



I have made a servlet under com folder and the name of my servlet class file is TestServlet.java. I am unable to get the servlet through URL: localhost:8080/.. What should i type in the url?

Re: URL for Test servlet.

Posted By:   Nandini_Sriram  
Posted On:   Tuesday, March 30, 2004 12:03 PM


Hi,
You need to include the following element in the DD. For example,


myServlet
/servlet/myServlet


Your servlet URL would then be "http://localhost:8080/servlet/myServlet".

Re: URL for Test servlet.

Posted By:   Christopher_Koenigsberg  
Posted On:   Tuesday, March 23, 2004 06:33 AM

Depends on what you have given as the url-pattern of the servlet-mapping

About | Sitemap | Contact