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! Thanks,

Neil.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to