Hi, I'm writing a JSP which must call different servlets,
using the requestDispatcher.forward() function.
The servlet engine has problems finding the servlets.
I have problems with the paths : the server integrated into JBuilder
(tomCat) just can't find the servlet, although I have added almost
everything in my classpath and in the project's search paths.
my jsp contains a line like this:
myRequestDispatcher =
request.getRequestDispatcher("myPackage.Servlet1");
myRequestDispatcher.forward();
and I have Servlet1.class in the /classes/mypackage/ directory.
Any idea how to tell tomCat to find the file mypack.Servlet1.class ?
FYI, the files are organized like this (JBuilder 4 default)
myProject/
src/
myPackage/
jsp1.jsp
Servlet1.java
classes/
myPackage/
Servlet1.class
Thanks for any help on this
--Christophe
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets