Saturday, 10 August 2013

How to add an extra URL mapping for an servlet that already mapped in Eclipse IDE 4.2?

How to add an extra URL mapping for an servlet that already mapped in
Eclipse IDE 4.2?

I want to add an extra URL mapping to my we application in Eclipse. Since
the eclipse IDE not using web.xml as deployment descriptor , I don't know
how to do this.
That is , the servlet LogServlet was already mapped as /LogServlet , but I
have need to add an extra mapping as /tamil/LogServlet .
Since web.xml not used as deployment descriptor in Eclipse , I don't know
how to do this .
Please help me in this issue.
(Project created in Dynamic Web Module 3.0 in Java EE 6[jdk 7] )
2) Please guide me how to create the web.xml file which contains all
deployment info on it.( that "Generate deployment descriptor stub" not
generating servlet mappings , only welcome pages tags )

No comments:

Post a Comment