Re: s2 : assigning a variable to jsp

2008-03-21 Thread Nils-Helge Garli Hegvik
Ok, that's a bit different... I'm not sure that the S2 tags expose things as scripting variables (please correct me if I'm wrong)... I guess you could set the variable to the request scope (or expose it as a property on your action), and since the FilterDispatcher wraps the servlet request to look

Re: s2 : assigning a variable to jsp

2008-03-21 Thread niels
Hi Nils, If looks at the docs, but can't find an example where I can set a jsp variable. I have this situation, I use oscache like: Where I want to set the jsp string 'cacheKey' with a property from the value stack.. like (what of course doesn't work): String cacheKey = "pre_"+; Than

Re: s2 : assigning a variable to jsp

2008-03-21 Thread Nils-Helge Garli Hegvik
Check out the set [1] and property [2] tags. It might also be useful to read about the tag syntax [3] [1] - http://struts.apache.org/2.x/docs/set.html [2] - http://struts.apache.org/2.x/docs/property.html [3] - http://struts.apache.org/2.x/docs/tag-syntax.html Nils-H On Fri, Mar 21, 2008 at 12:0

Re: s2 : assigning a variable to jsp

2008-03-21 Thread niels
Hm, want the otherway around. something like: <%= technologyName %> On Mar 21, 2008, at 12:11 PM, Deepak Kumar wrote: Hi, In Struts 2 you can use http://www.roseindia.net/struts/struts2/struts2controltags/set-tag.shtml Thanks -Original Message- From: niels [mailto:[EMAIL PROTECTE

RE: s2 : assigning a variable to jsp

2008-03-21 Thread Deepak Kumar
Hi, In Struts 2 you can use http://www.roseindia.net/struts/struts2/struts2controltags/set-tag.shtml Thanks -Original Message- From: niels [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2008 4:35 PM To: user@struts.apache.org Subject: s2 : assigning a variable to jsp Hello, I want