Hi,
You can't do forward once you have already write something in output stream. You can
only do include (ex : jsp:include).
Cedric
Barłomiej Pawłowski wrote:
> Hi all
>
> I have a problem with logic:forward
>
> In my jsp file are the following lines:
>
> <logic:notPresent name="profilesSession">
> <logic:forward name="indexClient"/>
> </logic:notPresent>
>
> It causes following exception:
>
> javax.servlet.ServletException: Exception forwarding for name
> indexClient: java.lang.IllegalStateException: Cannot forward as
> OutputStream or Writer has already been obtained
> at
>
>org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
>
> at
>
>jsp.client._0002fjsp_0002fclient_0002factList_0002ejspactList_jsp_0._jspService(_0002fjsp_0002fclient_0002factList_0002ejspactList_jsp_0.java:424)
>
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>
> Please help
> Bartek
> Poland