Nono, as I understand it <set /> takes the current object on top of the value stack and puts it into the page context (pageContext.setAttribute()).
The ValueStack itself is always stored as a page context attribute :) What I'm saying is you might want to take a variable OFF the stack, and then set it? <set value="user(bob)" id="bob" scope="application" /> -mike On 13/11/02 10:19 AM, "Patrick Lightbody" ([EMAIL PROTECTED]) penned the words: > Putting things in a generic scope is done by subclassing ValueStack. > Basically, ValueStack uses the method findInContext(String id) to look for > "@foo". So the ServletDispatcher when it runs, registers ServletValueStack > in the ActionContext as _the_ ValueStack to use. Currently the code in > ServletValueStack looks for PageContext.getAttribute, and if that throws an > exception, request.getAttribute(). We could expand this to look in session > and application scope as well, but we'd have to agree on an order, since the > EL only knows that @foo ---> findInContext("foo"). > > -Pat > > ----- Original Message ----- > From: "Mike Cannon-Brookes" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, November 12, 2002 3:12 PM > Subject: Re: [OS-webwork] Re: the names of the three new tags > > >> You might well want to pull something off the value stack and put it into >> the session or application scope? >> >> -mike >> >> On 13/11/02 9:41 AM, "Toby Hede" ([EMAIL PROTECTED]) penned the >> words: >> >>> would the use of a general set also allow variables to be set in > contexts >>> other then the pageContext? (as in future scope, not now) >>> >>> no idea why you would want to do this, but anyway ... >>> >>> >>>> Yes - these are good names IMHO! >>>> >>>> After reading lots of names, print, push and set all seem intuitively > to >>>> do the right things? >>>> >>>> Print a variable >>>> Push a variable on to the stack >>>> Set a variable in another context >>>> >>>> No? >>>> -mike >>>> >>>> On 13/11/02 7:15 AM, "Patrick Lightbody" ([EMAIL PROTECTED]) penned > the >>>> words: >>>> >>>>> My two (or three) cents: >>>>> >>>>> the names aren't very important right now, as this stuff is all >>>>> post-1.3 for now. My votes would be: >>>>> >>>>> -out or print (<ww:out value="foo/bar"/>) >>>>> -push (<ww:push value="foo"><ww:out value="bar"/></ww:push>) >>>>> -set (<ww:set value="foo/bar id="blah"/> <ww:out value="@blah"/>) >>>>> >>>>> -Pat >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> This sf.net email is sponsored by: >>>>> To learn the basics of securing your web site with SSL, >>>>> click here to get a FREE TRIAL of a Thawte Server Certificate: >>>>> http://www.gothawte.com/rd522.html >>>>> _______________________________________________ >>>>> Opensymphony-webwork mailing list >>>>> [EMAIL PROTECTED] >>>>> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> This sf.net email is sponsored by: >>>> To learn the basics of securing your web site with SSL, >>>> click here to get a FREE TRIAL of a Thawte Server Certificate: >>>> http://www.gothawte.com/rd522.html >>>> _______________________________________________ >>>> Opensymphony-webwork mailing list >>>> [EMAIL PROTECTED] >>>> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork >>> >>> >>> --------------------------------------------- >>> Technoshamanistic Resistance Within Hyper-Transgressive Ontology >>> >>> Me Blog: http://info-architects.net/terablog/ >>> >>> >>> >>> >>> ------------------------------------------------------- >>> This sf.net email is sponsored by: >>> To learn the basics of securing your web site with SSL, >>> click here to get a FREE TRIAL of a Thawte Server Certificate: >>> http://www.gothawte.com/rd522.html >>> _______________________________________________ >>> Opensymphony-webwork mailing list >>> [EMAIL PROTECTED] >>> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork >> >> >> >> ------------------------------------------------------- >> This sf.net email is sponsored by: >> To learn the basics of securing your web site with SSL, >> click here to get a FREE TRIAL of a Thawte Server Certificate: >> http://www.gothawte.com/rd522.html >> _______________________________________________ >> Opensymphony-webwork mailing list >> [EMAIL PROTECTED] >> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > To learn the basics of securing your web site with SSL, > click here to get a FREE TRIAL of a Thawte Server Certificate: > http://www.gothawte.com/rd522.html > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd522.html _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork