• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Run servlet class without using WEB-INF folder?

 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have servlet classes (not in jar file) in folder, say, C:\abc\xyz. Can I tell servlet engine to invoke these servlets? I know some old containers such as WebSphere 3.x allow me to do this. But with modern containers (e.g. tomcat 4.x) we always have to have a WEB-INF\classes folder to store the servlet classes. Is this true?
Thanks.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are correct - the loose rules about running servlets have been greatly tightened up for the current API. The idea being to create a uniform environment for web applications that is independent of a particular vendor.
Bill
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bill for the reply.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic