File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes request scope Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "request scope" Watch "request scope" New topic
Author

request scope

Aarthi
Greenhorn

Joined: Jan 03, 2007
Posts: 3
i want to convert the scope from session to request in struts. i will be helpful if i know what are the changes that are to be made in the Action class to populate the getter and setter methods from action form to JSP.
[ January 03, 2007: Message edited by: kalai priya ]
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6657
    
    5

Your question is a touch vague. Are you trying to attach attributes to request scope instead of session scope ? Not everyone can understand that you are using struts by reading that message. Can you be more specific ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Ajay Xavier
Ranch Hand

Joined: Jan 03, 2005
Posts: 109
Hi,

Do you want to convert the ActionForm from request to session scope?

If so, it depends on the design of your application. If the data entered by the user (across several JSP's) has to be maintained across the requests, then instead of maintaining all the action forms (releated with sll the JSP's) in session, they might be populated to a single Value object whcih can be stored in the session.

Thanks,
Ajay.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: request scope
 
Similar Threads
Struts Commons File Upload Clustered environment
Action Class State
Why is the ActionForms validate-Method called twice?
Forward - Servlet Action unavailable
<h:commandButton not invoking its action method after enabling