struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: [S2]Accessing value stack with jstl
Date Wed, 01 Jul 2009 19:23:36 GMT
Volker Krebs wrote:
>> we recently update from struts 2.0.14 to struts 2.1.6
>> In struts 2.0.14 org.apache.struts2.dispatcher.StrutsRequestWrapper
>> was delegating to the Value Stack.
>> This meant that in my JSP Page:
>> <s:property value="foo"/>
>> was the same as
>> ${foo}
>>
>> With struts 2.1.6 this doesn't seem to work.
>> How can I enable it ?
>>
> updates on this one!
> I debugged into
> org.apache.struts2.dispatcher.StrutsRequestWrapper.getAttribute(String)
> 
> And the Action itself is not on the value Stack when the RequestWrapper 
> is invoked. That's why access to the value stack with JSTL returns no 
> Objects.
> 
> I have to find the place where the Action itself is placed onto the 
> value stack and see what has changed between 2.0.14 and 2.1.6.
> It must be assured, that the value stack contains the action itself when 
> StrutsRequestWrapper is invoked.
> 
> Any help still would be appreciated.

Using JSP EL notation to access action properties works fine for me.

Can you be more specific regarding the action, JSP, etc?

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message