Re: JSTL and the Value Stack

2007-04-18 Thread Guillaume Carré
, then it doesn't work for jstl. I have filed an issue in JIRA about problems using JSTL on the value stack: https://issues.apache.org/struts/browse/WW-1798 And as I commented the issue, Adding the filter org.apache.struts2.dispatcher.ActionContextCleanUp before the FilterDispatcher solved the problem

JSTL and the Value Stack

2007-04-17 Thread Ray Clough
Is it possible to use JSTL to access the value stack? If so, what is the syntax. If that doesn't work, what is the syntax for accessing it with a scriptlet? That must be possible, because that is what the tags do. Thanks very much, Ray Clough

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

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 why

Re: JSTL and the Value Stack

2007-04-17 Thread Ray Clough
with the other children, as my grade school teacher once reported. Maybe I'm wrong, but that is my experience so far. - Ray Clough Dave Newton wrote: --- Ray Clough [EMAIL PROTECTED] wrote: Is it possible to use JSTL to access the value stack? The StrutsRequestWrapper (?) will forward

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 format using

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 s:iterator.../ 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,

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

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 mentioned, in

Re: JSTL and the Value Stack

2007-04-17 Thread Ray Clough
[EMAIL PROTECTED] wrote: Is it possible to use JSTL to access the value stack? If so, what is the syntax. If that doesn't work, what is the syntax for accessing it with a scriptlet? That must be possible, because that is what the tags do. Thanks very much, Ray Clough

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 s:iterator value=exporter.nameValuePairs , and it works fine. If I use the jstl syntax c:forEach items=${exporter.dataMatrices}

Re: JSTL and the Value Stack

2007-04-17 Thread Ray Clough
spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/JSTL-and-the-Value

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, because I