Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Action with more than one method

 
Ve Ku
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
i am new with Struts2. Trying to understand and work with it . I have an action with two or more methods. What i can not understand is , when i am setting a session attribute value in the first method, can i use it -the same session attribute value in the other method. Sorri if my question is not very clear, please let's discuss that.
Thanks
 
Jesus Mireles
Ranch Hand
Posts: 122
IntelliJ IDE Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you have something in session you can use it any any method or action for that matter as long as its still in session.
 
Ve Ku
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes i got it, i'll try an example now, thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic