Re: JSTL and the Value Stack

2007-04-18 Thread Guillaume Carré
2007/4/18, Ray Clough <[EMAIL PROTECTED]>: This page perfectly illustrates my point on the difficulty of the JSTL tags working nicely with S2. The page works perfectly if the object is explicitly placed into the HttpRequest. If the 'getExporter()' is the way in which the Exporter is exposed, th

Re: JSTL and the Value Stack

2007-04-17 Thread Dave Newton
--- Ray Clough <[EMAIL PROTECTED]> wrote: > I'm using the S2 tags for the "NameValuePairs", and > it works fine. I'm trying to use JSTL for the > "DataMatrices", and it doesn't work. I'll examine this further when I get home. > Of course, I REALLY don't want to implement > ServletRequestAware, b

Re: JSTL and the Value Stack

2007-04-17 Thread Ray Clough
The Exporter class is designed to make the data in my "Model" class available for use in jsp. It has a method "getDataMatrices()" and another "getNameValuePairs()". I'm using the S2 tags for the "NameValuePairs", and it works fine. I'm trying to use JSTL for the "DataMatrices", and it doesn't w

Re: JSTL and the Value Stack

2007-04-17 Thread Dave Newton
--- Ray Clough <[EMAIL PROTECTED]> wrote: > My Action has a method "public Exporter > getExporter()". If I use the struts2 > tags I can access the "exporter" with > , > and it works fine. If I use the jstl syntax > var="matrix" >, nothing is found. How do > I get the jstl tag to work here?

Re: JSTL and the Value Stack

2007-04-17 Thread Ray Clough
My Action has a method "public Exporter getExporter()". If I use the struts2 tags I can access the "exporter" with , and it works fine. If I use the jstl syntax , nothing is found. How do I get the jstl tag to work here? Thanks a million. - Ray Clough Musachy Barroso wrote: > > http://cwi

Re: JSTL and the Value Stack

2007-04-17 Thread Musachy Barroso
In ${expression}, "expression" will be evaluated against the Value Stack. An Dave is right, the "variable publishing" name is probably not the best description for it :) musachy On 4/17/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: The do publish a variable, if they have to, as Dave mentione

Re: JSTL and the Value Stack

2007-04-17 Thread Musachy Barroso
The do publish a variable, if they have to, as Dave mentioned, in the case of the iterator, even if you don't specify and id, the current value will be on top of the stack which you access using %{#top}. Other tags publish values, like the url tag, etc. musachy On 4/17/07, Dave Newton <[EMAIL PR

Re: JSTL and the Value Stack

2007-04-17 Thread Dave Newton
--- Dave Newton <[EMAIL PROTECTED]> wrote: > ...but I'm telling you they do [expose variables to > JSTL], or at least does. Let me re-phrase that... it's not so much that they "expose" variables, but that the StrutsRequestWrappers will pass variable requests (not sure what to call this, somebody

Re: JSTL and the Value Stack

2007-04-17 Thread Dave Newton
--- Ray Clough <[EMAIL PROTECTED]> wrote: > The "why" is because I just really don't like the > Struts-2 tags. I especially don't like the fact that > they don't expose a variable on the page - for > example the s:iterator tag does not explicitly expose > a variable which I can work with, or form

Re: JSTL and the Value Stack

2007-04-17 Thread Ray Clough
The "why" is because I just really don't like the Struts-2 tags. I especially don't like the fact that they don't expose a variable on the page - for example the s:iterator tag does not explicitly expose a variable which I can work with, or format using jstl. They "don't play nicely with the

Re: JSTL and the Value Stack

2007-04-17 Thread Dave Newton
--- Ray Clough <[EMAIL PROTECTED]> wrote: > Is it possible to use JSTL to access the value stack? The StrutsRequestWrapper (?) will forward... "unfulfilled" attribute requests to the OGNL stack. I wouldn't be sure of the exact syntax; it may depend on what, exactly, you're trying to access (and

Re: JSTL and the Value Stack

2007-04-17 Thread Musachy Barroso
http://cwiki.apache.org/confluence/display/WW/Can+we+use+JSTL+with+the+framework I shouldn't be linking to the wiki but the main doc has an error (fixed on wiki already). regards musachy On 4/17/07, Ray Clough <[EMAIL PROTECTED]> wrote: Is it possible to use JSTL to access the value stack?