I have several JSPs to do some user input processing. It works fine if the
user makes no errors.
But if some data are missing, I want to stop processing and display an error
page.
Outside of jetspeed in an ordinary JSP app I use something like

<c:if test="${empty id }">
<%-- display an error message and stop processing of this page --%>
<jsp:forward page="inc/error.jsp"/>
</c:if>

In a portlet I get the error message
Error encountered processing a template:
/portlets/html/tmbase/ot/displayOrder.jsporg.apache.jasper.JasperException:
Cannot forward after response has been committed at
org.apache.jasper.servlet.JspServletWrapper.service

I think this happens because the stuff surrunding my portlet was already
written into the response.

How to do it in a portlet?

Thank in advance
Thomas Grundey


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to