File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

request scope


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

Joined: Feb 24, 2006
Posts: 6662

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

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.

I agree. Here's the link:
subject: request scope
It's not a secret anymore!