• 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

html:messages not being removed from session?

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ranchers -

I wrote some code that stores some html:messages in session, then a jsp, which is called after several action classes run, displays the messages. I believe the messages should be removed from the session once they are displayed in the jsp, but that doesn't appear to be happening. The messages are displayed again after a submission and redisplay of the jsp, but the messages aren't being resaved in the session by the action classes.

The messages should be removed, right? or must I remove them with code?

Here's the jsp code:

<html:messages id="msg" name="org.apache.struts.action.ACTION_MESSAGE">
<bean:write name="msg"/><br/>
</html:messages>

Thank You,
Steve
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Actions should be setting the messages to request scope. Not sure what your problem could be without seeing code. You're not using class-level variables in your Actions are you?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic