Hi Dave,
IN a webapp, you can structure the directories containing
.jsp and .html files however you wish. However, your java
.class files need to be in a single "unified" directory tree,
under WEB-INF/classes.
This doesn't mean your source code has to be structured
in the same way. As long as you have some option in the
tool you use to compile (be it an IDE, or ant, or make, or..)
to put the compiled classes somewhere other than in the
same directory as the source, you can do what you want.
As an alternative: bundle groups of related files into jars,
and put the jars in WEB-INF/lib. You can have multiple jars
here...but this is not very convenient during development
phase.
Cheers,
Simon
> -----Original Message-----
> From: Dave Newton [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, December 20, 2000 6:04 PM
> To: [EMAIL PROTECTED]
> Subject: Basic web-app question
>
> This may be an utterly stupid question, but since I don't have
> to impress anybody (much ;) I'll ask it anyway.
>
> Normally when I've developed a web application in another
> environment I can use sub-directories to help keep things
> clean. It appears that JSP/Servlet applications are delivered
> in a WAR with a specific directory hierarchy (classes, etc.)
>
> Can the WAR file (or a webapp in general if I deploy non-WAR)
> contain a directory hierarchy, i.e., I have a site with a
> home page (main directory) and a few things off of it, then,
> say, a message base (or whatever) "section" in a subdirectory,
> etc.? Does that work?
>
> Thanks!
>
> --
> Dave Newton, [EMAIL PROTECTED]