This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
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://aspose.com/file-tools
 
subject: Action with more than one method
 
Similar Threads
jsp:useBean problem ..Major one !! Please Help !!
Action Chaining issue
Multiple Forms, Multiple Submissions
Struts form not holding values
Shopping cart help