Hello. I am having trouble getting a servlet include to work as desired. My
doGet method includes:

---------------
RequestDispatcher rd;
rd = getServletContext().getRequestDispatcher("/servlet/CalculateDetailsTab");
rd.include(req, res);

// FORWARD THE RESULTS TO THE JSP
if (forward_to_jsp.equals("")){
System.out.println("Error - No JSP to forward to");
} else {
System.out.println("Forwarding the parameters from LoadSingleItemHeader to
" + forward_to_jsp);

rd = getServletContext().getRequestDispatcher(forward_to_jsp);

//              The 'forward_to_jsp' String above contains the location of the jsp
//              that reads the session values given above.
//              e.g. "/jspDirectory/example.jsp"
rd.forward(req,res);

-----------------------------

The JSP page works fine without the include. Is it something to do with the
rd implementation? The error i get is:

Error 404

An error has occured while processing
request:http:/......./base/part_information_details.jsp

Message:[JSP 1.0 Processor] reported an error
Target Servlet: JSP 1.0 Processor
StackTrace:

Root Error-1: [JSP 1.0 Processor] reported an error
com.ibm.servlet.engine.webapp.WebAppErrorReport: [JSP 1.0 Processor]
reported an error at java.lang.Throwable.(Compiled Code) at
java.lang.Exception.(Compiled Code) at
javax.servlet.ServletException.(Compiled Code) at
com.ibm.websphere.servlet.error.ServletErrorReport.(Compiled Code) at
com.ibm.servlet.engine.webapp.WebAppErrorReport.(Compiled Code) at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(Compiled
Code) at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(Compiled
Code) at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(Compiled Code) at

I'm using:
Websphere Advanced 3.02 for Solaris
Apache 1.3.9.

Please help!

Neil.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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