Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploy servlet question

 
Raj Puri
Ranch Hand
Posts: 189
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic