Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

request scope

 
Aarthi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Ajay Xavier
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic