Re: Runtime Expressions within Tag

2007-12-10 Thread Alberto A. Flores
In case anyone also needs this, I avoided this by using the tag (thus using the value stack). It worked just fine without adding the extra property to the Action class. Wes Wannemacher wrote: I don't think you are understanding what I am telling you... When you read a parameter directly, it wi

Re: Runtime Expressions within Tag

2007-12-10 Thread Alberto A. Flores
Thanks Wes, I understood what you meant in your first reply and I appreciate it. However I'm used to doing simple calculations on a JSP (like just adding a 1 to a guaranteed numeric value), independent of the Action class. I guess this is part of my coding techniques in using non-thread safe

Re: Runtime Expressions within Tag

2007-12-10 Thread Wes Wannemacher
I don't think you are understanding what I am telling you... When you read a parameter directly, it will be a string. It's pretty much the same as calling - request.getParameter("paramName"); (http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletRequest.html#getParameter(java.lang

Re: Runtime Expressions within Tag

2007-12-10 Thread Alberto A. Flores
Thanks Wes, No offense to this approach, but is this the only way to do additions (and for this matter, any other operations) within a struts2 tag?. This is simply not clean (e.g. adding a property to my action for a counter, etc). Thanks anyway! Alberto Wes Wannemacher wrote: #request.fo

Re: Runtime Expressions within Tag

2007-12-10 Thread Wes Wannemacher
#request.foo is going to evaluate as a j.l.String. If your action has a getter for foo, then just refer to it as "%{foo + 1}", conversely, if you are feeling confident, you can make a static call to parse it - "[EMAIL PROTECTED]@parseInt(#request.foo) +1}" -Wes On 12/10/07, Alberto A. Flores <[EM

Re: Runtime expressions

2005-01-08 Thread William Ferguson
ot; <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Sunday, January 09, 2005 3:17 AM Subject: Re: Runtime expressions > On Sat, 8 Jan 2005 22:16:49 +1000, William Ferguson > <[EMAIL PROTECTED]> wrote: > > > > > > > You can't nest any

Re: Runtime expressions

2005-01-08 Thread Pavel Kolesnikov
On Sat, 8 Jan 2005 22:16:49 +1000, William Ferguson <[EMAIL PROTECTED]> wrote: > > You can't nest any custom tags like this. Following works well with JSP 1.2: but you need the html-el taglib (it means NOT the original html taglib included in the minimal struts-lib distribution). You ha

Re: Runtime expressions

2005-01-08 Thread William Ferguson
Yes. Tomact 5.0.28 Is that significant? William - Original Message - From: "Larry Meadors" <[EMAIL PROTECTED]> To: "William Ferguson" <[EMAIL PROTECTED]> Cc: "Struts Users Mailing List" Sent: Saturday, January 08, 2005 11:39 PM Subject: Re

Re: Runtime expressions

2005-01-08 Thread Larry Meadors
e > false > true > > > name > false > true > > > property > false > true > > > > William > > - Original Message - > From: "Larry Meadors" <[EMAIL PROTECTED]> > To: "S

Re: Runtime expressions

2005-01-08 Thread William Ferguson
;Struts Users Mailing List" Sent: Saturday, January 08, 2005 10:52 PM Subject: Re: Runtime expressions > Hmm, you did not say in the original email - are you using the html-el tld? > > If not, it will not work. > > Larry > > On Sat, 8 Jan 2005 22:16:49 +1000, William

Re: Runtime expressions

2005-01-08 Thread Larry Meadors
Hmm, you did not say in the original email - are you using the html-el tld? If not, it will not work. Larry On Sat, 8 Jan 2005 22:16:49 +1000, William Ferguson <[EMAIL PROTECTED]> wrote: > If I have defined > > > > in a JSP, and I have saved an ActionMessage keyed on 'quantity.0' into the > R