Mufaddal Khumri wrote:
Now, since a request.sendRedirect( .. ) wont work from within an included .jsp page ... i am trying to use the <jsp:forward ... /> tag.

[...]


Now if the USER_AUTHORIZED attribute is not set, it will enter the if block and get forwarded to the login.jsp page.

I get the following error now:
----- Root Cause -----
java.lang.IllegalStateException: Cannot forward after response has been committed
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp atcher.java:368)

"Be careful when using <jsp:forward> with unbuffered output. If you have used the page directive with buffer="none" to specify that the output of your JSP page should not be buffered, and if the JSP page has any data in the out object, using <jsp:forward> will cause an IllegalStateException."


from http://java.sun.com/products/jsp/syntax/1.2/syntaxref1212.html#15694


Erik



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



Reply via email to