You forget the servlet mapping path! This should work for now

request.getRequestDispatcher( request.getContextPath()+
                         "/servlet/"
                         "myPackage.Servlet1");
myRequestDispatcher.forward();

--
Peter Pilgrim
G.O.A.T
                    "the Greatest Of All Time"



---------------------------------------- Message History 
----------------------------------------


From: Christophe Dubourg <[EMAIL PROTECTED]>@java.sun.com> on 14/02/2001 
16:36 CET

--<CUT>--

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 ?

__CUT__



--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorised copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.

===========================================================================
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

Reply via email to