It's not a secret anymore!
The moose likes Struts and the fly likes Response committed exception with tiles and protected jsps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Response committed exception with tiles and protected jsps" Watch "Response committed exception with tiles and protected jsps" New topic
Author

Response committed exception with tiles and protected jsps

Wes Hughes
Ranch Hand

Joined: Jul 29, 2002
Posts: 31
Due to standards beyond my control I had to move my jsps from beneath
/WEB-INF/jsp to /jsp. In order to prevent access to my jsps I added a
security-constraint, blocking access to the jsps. Unfortunately, now none of
my tiles display properly, instead I get the error message:
[Exception in:/jsp/body/home_body.jsp] Response has already been committed
for all the protected pages. The problem is that for each protected page,
its trying to authenticate the user using the FORM authentication that I
have set-up (this is a separate security-constraint from the jsp
protection). All I want to prevent is direct access to the jsp, not access
through other means (e.g. action/tile).
Thanks.
 
Consider Paul's rocket mass heater.
 
subject: Response committed exception with tiles and protected jsps
 
jQuery in Action, 3rd edition