struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chappell, Simon P" <>
Subject RE: Request v Page scope?
Date Tue, 15 Oct 2002 19:53:50 GMT
In a nutshell (I'll let someone else explain the slow version) the page scope is for information
that only literally exists for the duration of time taken to render a page. This is obviously
not a very long period of time and not terribly useful in Struts, but it is a defined scope
according to the JSP specs and so Struts allows it.

Those most likely to use the page context would be those who write scriptlets directly into
their pages. Scriptlets are worse than evil, so don't ever use them. Don't even think about
using them. Don't even think about thinking about using them!!!

Request scope is everything that takes place between submitting a form to the great void known
as the Internet and getting something back. This can involve multiple backend forwards and
other bizarre things that are best not thought about once the sun has gone down for the day.
(And don't use scriptlets).

Hope this helps.


Simon P. Chappell           
Java Programming Specialist            
Lands' End, Inc.                                   (608) 935-4526

>-----Original Message-----
>From: Howard Miller []
>Sent: Tuesday, October 15, 2002 2:45 PM
>To: struts Users Mailing List
>Subject: Request v Page scope?
>Can somebody explain (slowly) the difference between Request 
>scope and Page scope - I particularly don't understand what the 
>intended purpose of Page scope is.
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message