Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts form bean scope

 
reddy raja
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am new to struts i have doubt in using struts form bean scope. i am using struts 1.2 in my project .i have a requirement where i want to populate the values of one page in corresponding next page .I can get the values by using same form bean for both the pages.I used form bean scope as session .But people saying this will decrease the performance of project .If i keep form bean scope as request then at the time of validations values are missing.I cannot use hidden fields because of security purpose.

so please suggest me something .

Thank you.

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Who says it'll decrease the performance of your project?

The only reason keeping data in session *might* reduce performance is if there's a *lot* of data in the session, but session forms are unlikely to be the culprit. And you can always remove them from session once you're not processing the form any more.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic