• 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

Losing data using ExceptionMappingInterceptor

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am developing with Struts 2 and I created a custom ExceptionMappingInterceptor class that is used to override the publishException method. In CustomExceptionMappingInterceptor I set an error message to an ActionError depending on which exception is caught. Then I return the user to the same screen, not a global error screen. This all works except that I lose the user's data when I render the screen. When I debug I see that just before the screen is rendered all of the data is available in the action class, so I cannot figure out why the JSP is not displaying it.

Any ideas on why I am not displaying the data would be very appreciated.
 
reply
    Bookmark Topic Watch Topic
  • New Topic