--- Gary Affonso <[EMAIL PROTECTED]> wrote:
>
http://struts.apache.org/2.x/docs/exposing-framework-objects-to-jstl-with-a-jstl-and-displaytag-example.html
> 
> ...which, if I'm hearing you correctly, is
> unnecessary for the EL portion of JSTL.

That's probably true.

>
http://struts.apache.org/2.x/docs/using-struts-and-xwork-with-jsp-20-and-jstl-11.html
> 
> ...which is also, if I' hearing you correctly,
completely unnecessary.

That is probably also true.

> So maybe the docs should be updated?

Again, probably true.

At some point we'll need to garden the wiki to make
sure that everything there is relevent. That page, at
least, is pretty old.

>> Yes, but OGNL # expressions won't work unless you
>>  turn it off [...]
> Ahhh, understood.

I forgot about escaping it as Wes mentioned.

> >> 4) How do I get things like the "top" of the
> stack?
> > 
> > [0]
> >
> > See
> >
> http://struts.apache.org/2.x/docs/ognl-basics.html.
> 
> Hmmm.  How does that work, exactly?  Doesn't EL need
> an object identifier to reference the [] notation
against?

Don't just say "EL"; you have to say which one.
*Struts* tags use OGNL. The default object identifier
is "the stack". So if you say [0] that means
object-at-stack-location-0.

That's why when you're accessing an action property
named "baz" you can say <s:property value="baz"/>,
it's evaluating "baz" against the stack, and the first
place it looks is the stack top, which just after
hitting the view side is (more or less, anyway) your
action.

So there's a magic object reference already.

d.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to