• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

IllegalStateException

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am in the process of building a web application with struts and tiles. I am looking at access control. I was planning to simply set an attribute in session scope when a user has logged in. Each JSP page would simply check if the attribute was set and if not forward to the login page:
<logic:forward name="start" />
However I get the following error when I try this:
org.apache.jasper.JasperException: Exception forwarding for name start: java.lang.IllegalStateException: Cannot forward after response has been committed
I was wondering if anyone has come accross this and may be able to provide some more insight.
Regards,
Derek.
 
reply
    Bookmark Topic Watch Topic
  • New Topic