This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes Action with more than one method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Action with more than one method" Watch "Action with more than one method" New topic
Author

Action with more than one method

Ve Ku
Greenhorn

Joined: Sep 17, 2010
Posts: 19
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

Joined: Mar 10, 2010
Posts: 122

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

Joined: Sep 17, 2010
Posts: 19
yes i got it, i'll try an example now, thanks.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Action with more than one method
 
Similar Threads
Shopping cart help
jsp:useBean problem ..Major one !! Please Help !!
Multiple Forms, Multiple Submissions
Action Chaining issue
Struts form not holding values