I hope that someone good with JSP and Servlet can help me ...


I'm triying to send an error message to a jsp page called error.jsp located
in c:\Apache_Group\Apache\htdocs\folder1\
from a servlet MultitelPay.jsp located in the same directory,
c:\Apache_Group\Apache\htdocs\folder1\.
In my servlet I've tried this code :



                try
                {

getServletConfig().getServletContext().getRequestDispatcher("error.jsp?error
=fatal error").forward                  (request,response);

                } catch (Exception ex) {
                    ex.printStackTrace ();
                }




and in the jsp I have :


                <%
                String error=(String)request.getParameter("error");
                out.println(error);
                %>


The error message is :
---------------------------
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and inform them of
the time the error occurred, and anything you might have done that may have
caused the error.

More information about this error may be available in the server error log.
----------------------------------------------------------------------------
----

Apache/1.3.9 Server at sirius Port 80



Can someone help me ?????????

        Thanks, Samuele.




**********************************************
Samuele Brignoli - Sinapsi S.r.l.
Viale Gorizia 2 - Milan - Italy
+39 2 8392554
[EMAIL PROTECTED]
http://www.sinapsi.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to