Re: tag syntax question

2009-07-24 Thread Musachy Barroso
I totally agree with Dale, using %{..} will save you a lot of headaches. musachy On Fri, Jul 24, 2009 at 7:31 AM, Dale Newfield wrote: > Mitch Claborn wrote: >> >> Is either of the following more or less efficient than the other? >> >> >> > > I always argue that the latter should be used, just

Re: tag syntax question

2009-07-24 Thread mailtolouis2020-struts
Hi, I've another tag syntax question This not work: This work This also work Why we need to use %{} for fieldValue but value doesn't require? Regards Louis From: Dale Newfield To: Struts Users Mailing List Sent: Friday, July 24, 2009

Re: tag syntax question

2009-07-24 Thread Dale Newfield
Mitch Claborn wrote: Is either of the following more or less efficient than the other? I always argue that the latter should be used, just to avoid unnecessary confusion later on. -Dale - To unsubscribe, e-mail: user-uns

Re: tag syntax question

2009-07-24 Thread Mitch Claborn
Is either of the following more or less efficient than the other? mitch Musachy Barroso wrote: > other attributes are expected to be expressions, so you can do: > > > > instead of the more verbose, but also correct: > > > > > -

Re: tag syntax question

2009-07-24 Thread Mitch Claborn
Thanks to both. The haze on the subject is beginning to clear. mitch Musachy Barroso wrote: > yes that's a good catch Dale, from the API point of view they are > stored in a map in the ValueStack instance, but from a user point of > view you could say they are stored in the "valuestack context"

Re: tag syntax question

2009-07-23 Thread Musachy Barroso
yes that's a good catch Dale, from the API point of view they are stored in a map in the ValueStack instance, but from a user point of view you could say they are stored in the "valuestack context". musachy On Thu, Jul 23, 2009 at 9:03 PM, Dale Newfield wrote: > Musachy Barroso wrote: >> >> Objec

Re: tag syntax question

2009-07-23 Thread Dale Newfield
Musachy Barroso wrote: Objects can be put in the stack by name, like the HttpServletRequest object. Theseobjects are accessed using the "#" notation, like "#request". The "set" tag can add things to the stack by name(for example). The only confusing bit about the way that was just described is

Re: tag syntax question

2009-07-23 Thread Musachy Barroso
you need to read about the value stack. long story short, the VS stacks (duh) objects. When an expressions like: "name" is evaluated, struts will go from the top to the bottom of the stack, trying to find a "name" field or "getName" method, until one is found. Different things are placed in the s

tag syntax question

2009-07-23 Thread Mitch Claborn
I'm a big confused about the syntax in struts tags. For example, I have the following: "display" is a property on the action. The first one does not need the #, but the second one does. Why? What does the # signify? Some tags seem to need the ognl construct %{.}. What are the rules ar