Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to remove session attributes using struts-tags in Struts2?

 
Ramesh kangamuthu
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I work in a Struts 2 application in which I need to remove certain session attributes when changing the display of one page to another inside the parent jsp page. In Struts 2 which tag performs this.Please any one guide me?


Regards,

Ramesh K
 
Richard Xing
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use <s:set ../> tag. The following is a sample.

<s:set name="variableName" value="" scope="session"/>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic