hi,
The default path for servlets in tomcat is /servlets/<our_servlet>.
So I recommend that you try this
myRequestDispatcher = request.getRequestDispatcher("/servlets/myPackage.Servlet1");
Check the web.xml file under <tomcat_home>/conf
You can also add a web.xml for your project by adding the directory WEB-INF to your project root and put the web.xml file there.
I hope this is to some help.
/Nils
>From: Michael Normington <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: JSP/Servlets and JBuilder 4 paths problem
>Date: Wed, 14 Feb 2001 09:56:13 -0600
>
>it sounds like you need to reference myPackage.Servlet1.class instead of
>mypack.Servlet1.class
>
>-----Original Message-----
>From: Christophe Dubourg [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 14, 2001 9:36 AM
>To: [EMAIL PROTECTED]
>Subject: JSP/Servlets and JBuilder 4 paths problem
>
>
>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
>
>===========================================================================
>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
Get your FREE download of MSN Explorer at
http://explorer.msn.com
===========================================================================
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