× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Additional info for my last e-mail.
I should add that forwarding to a servlet (versus a JSP) works:
 gotoPage("/servlet/Aservlet", req, res);

private void gotoPage(String addr, HttpServletRequest req,
HttpServletResponse res) throws ServletException, IOException {
      RequestDispatcher dsp =
getServletContext().getRequestDispatcher(addr);
      dsp.forward(req,res);
}

----- Original Message -----
From: "Bruce Jin" <JIN007M@hotmail.com>

> I have a very simple JSP file (error.jsp) that can be correctly invoked by
> http://192.168.0.170/webapp/mrcps/error.jsp
>
> <html>
> <head><title>Error test  </title></head>
> <body>
> <H1>Error test  </H1>
> </body>
> </html>
>
> Then I try to forward to this simple jsp file from a servlet using:
>
> gotoPage("/webapp/mrcps/error.jsp", req, res);
>
> private void gotoPage(String addr, HttpServletRequest req,
> HttpServletResponse res) throws
> ServletException, IOException {
>       RequestDispatcher dsp =
> getServletContext().getRequestDispatcher(addr);
>       dsp.forward(req,res);
> }
>
> I get an error as below. How to debug this? (no entry is logged for this
> error in default_server_stderr.log).
> Thanks.
> Bruce
>
>
>
> Error 404
> An error has occured while processing
> request:http://192.168.0.170/ErrorReporter
> Message: [jsp10] reported an error
>
> Target Servlet: jsp10
> StackTrace:
>
>
> --------------------------------------------------------------------------
--
> ----
>
> Root Error-1: [jsp10] reported an error
> com.ibm.servlet.engine.webapp.WebAppErrorReport: [jsp10] reported an error
>      java/lang/Throwable.(Ljava/lang/String;)V+4 (Throwable.java:94)
>
>
com/ibm/servlet/engine/webapp/WebAppDispatcherResponse.sendError(ILjava/lang
> /String;)V+38 (WebAppDispatcherResponse.java:100)
>
com/ibm/servlet/engine/webapp/WebAppDispatcherResponse.sendError(I)V+37
> (WebAppDispatcherResponse.java:78)
>
>
>


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.