aspose 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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploy servlet question