Hi all,

I'm not sure if this falls more into JSP or servlet territory.

I have a JSP that includes a servlet via:

<jsp:include page="MyServlet"/>

Within the servlet I detect a severe error (in a business rule) and I want
to generate an HTTP 500 error like this:

response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);

Even though my servlet calls "sendError()" as shown above, control still
returns to the JSP that included the servlet which goes on its merry way,
oblivious to the error in the servlet. This is wrong. I want the JSP to
abort processing.

Any ideas on the correct way to do this?

Thanks.

___________________________________________________________________________
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