File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Deploy servlet question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Deploy servlet question" Watch "Deploy servlet question" New topic
Author

Deploy servlet question

Raj Puri
Ranch Hand

Joined: Apr 24, 2003
Posts: 189
Standard way is to put them in servlet folder under WEB-INF etc and do URL mapping to call them. My question is can I copy servlet in webapps direct and call them with real name with http w/o naming them in web.xml like we do jsp pages.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

If you're using Tomcat, you can uncomment the invoker servlet and call it with
http://localhost:8080/servlet/<package>.<servlet-class-name>.

This is, of course, a hideous thing to do as is explained here:
http://faq.javaranch.com/view?InvokerServlet


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Deploy servlet question