> I have a number of servlet class files which I would
> like to put in a separate folder from the rest of the
> servlet files. This folder could be called
> parent_classes because these are simply parent classes
> of the servlets. Will Tomcat allow me to do this? If
> so, how can I get this to work? I am currently
> getting different errors depending on my setup.
This is a java rather than TC question. You need to
do some homework. In the meanwhile:-
To do this type of thing ('Extract Package' I guess)
you would:
1. Create a new dir called 'parentclasses' (no '_' please).
2. Take the java files for these parent (base) classes and
put them in the new 'parentclasses' dir.
3. Edit the parent class java files to include a package statement
that reflected their new location in your package tree, e.g
- package com.plok.anapp.parentclasses;
4. Import this, or classes from this, package in the java files
for the subclass definitions.
5. Recompile the src for your app.
Miles