• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to run servlet from other package directory (urgently)

 
clyde melly
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

I would like to know whether we can change the location of servlet class files that are kept in tomcat application server.

I know default classes are kept in WEB-INF/classes , but can we keep it inside a package and call it.

e.g. WEB-INF/classes/package

if so how can we do it in tomcat 3.3.a


Please reply fast,



 
Sundar Gopal
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
u can have a folder inside web-inf/classes. and inside that package you can have ur servlet class but u have to configure the path in the web deployment descriptor....<servlet-path> param...
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll reply around 20 September if I don't forget.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35704
407
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Clyde,
If you keep the java classes in a package, they go into classes/package automatically.
 
Sonny Gill
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See Tomcat deployment organization
[ August 17, 2004: Message edited by: Sonny Gill ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!