Title: RE: Setting paths relative to webapp root...

put the files in their respective packages and then compile them with -d  path/dir/myWebApp/WEB-INF/classes option. This will move the .class files to the respective directories under WEB-INF/classes .

On the Browser type host_etc/dir/myWebApp/Servlet/PackageName.MyServlet and it should work.

===
Gary Grewal


-----Original Message-----
From: Gary Bentley [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 11:29 AM
To: [EMAIL PROTECTED]
Subject: Setting paths relative to webapp root...


Hi folks,

Can anyone answer the following?

I am using Tomcat 3.2.1 and Apache.

I have a web application that lives in a directory:

        /dir/myWebApp/

I have placed all my classes in:

        /dir/myWebApp/WEB-INF/classes

and I can get the application to work just fine...

However I now want to "move" some of the classes to sub-directories so I can
split the app into
a more sensible structure...for instance instead of going to:

        /dir/myWebApp/doThis

I now want to go to:

        /dir/myWebApp/interface/doThis

instead...

I have tried a few ways of doing this, mainly using the web.xml file and
nothing seems to work...

Can anyone let me know how this is done...I would like to create a few
directories...

I want to have the same class loader for all the "sub-directories", in other
words I don't want to create separate web apps for each directory since this
would be very wasteful...multiple class loaders etc...

Any help is appreciated...

G.

Reply via email to