Hi, Scott

Servlets should go in webapps/<your-app>/WEB-INF/classes.  For servlets in a
package, the directory structure in the classes subdir should reflect the
package structure.  Thus, the class named foo.bar.Class should go in the
subdirectory classes/foo/bar/.

JSPs normally go where HTML files go.

Regards,
Noel Lecaros

"Purcell, Scott" wrote:

> Hello,
> I have the book, Java Server Pages from Duane K Fields and Kolb, and I am
> running the tomcat server. I just used the default install. Anyway, I want
> to try an example from the book, but do not know where to put the Servlet so
> my .jsp page can find it.
>
> I was hoping someone could explain to me, where these two files should go.
> If they go in the same dir somewhere, or in different dirs.?
>
> Also, if there is anything else I should know, please advise.
>
> Thanks have a nice Friday,
>
> Scott Purcell
>
> Scott Purcell

Reply via email to