Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"session" vs "request" for "scope" in <action&g 1

Status
Not open for further replies.

pravzICS

Programmer
Aug 8, 2005
12
0
0
US
Hi all,

In the <action> tag, the attribute "scope" is either "session" or "request" ? what is the significance of both? when do we use "session" and when do we use "request" ?

please suggest. thanks.
 
Hi,

It really depends, if you put the scope as request the ActionForm with user entered values will in request scope, if you specify it be in session the ActionForm will be in session scope. The best example where you use session is when are developing a "Wizard" where a user can go back and forward to change the entered values.

Cheers
Venu
 
Hi Venu,

I understood this one now.

thanks a lot.

pravz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top