Yeah, i was also looking how to get it from valuestack ; Getting rid of scriptlets may be too much work, but i will definitely consider that.
On 8/24/07, Crume, Adam <[EMAIL PROTECTED]> wrote: > > The best thing to do would be to get rid of the scriptlets. Barring > that, though, you could use the Struts 2 "set" tag to set a request > attribute, then in the scriptlet do something like this: > <% > String myVar = request.getAttribute("myVar"); > %> > > There's probably a faster way by accessing the ValueStack directly, but > off the top of my head I don't know how to do that. > > ___________________________________ > Adam Crume > Computer Information Technologist II > Central Technology Services > (573) 634-5600 ext. 1693 > > -----Original Message----- > From: j alex [mailto:[EMAIL PROTECTED] > Sent: Friday, August 24, 2007 2:04 PM > To: Struts Users Mailing List > Subject: S2 : Struts tags and scriptlets > > Hi, > > How do we make variables set by struts tags available to scriptlets? . > In Struts 1 , we could set an object using bean:define and access it > within a scriptlet ? ; what's the equivalent for S2 ? > > In the app i'm converting to S2, there's a lot of scriptlet code and we > are trying to retain that and just supply the data from Action using S2 > tags > > Thanks, > Joseph > > > ************************************************************************************************** > Note: > The information contained in this message may be privileged and > confidential and > protected from disclosure. If the reader of this message is not the > intended > recipient, or an employee or agent responsible for delivering this message > to > the intended recipient, you are hereby notified that any dissemination, > distribution or copying of this communication is strictly prohibited. If > you > have received this communication in error, please notify us immediately by > replying to the message and deleting it from your computer. > > ************************************************************************************************** > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >