Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

[S2] Going nuts with <s:set>

Roger Varley

2007-03-14

Replies:

Hi

I have this fragment of .jsp code

       <s:iterator value="order.details" status="status">
          <s:set name="indexValue" value="#status.index" scope="request"/>

          <s:text name="index"/>
          <s:property value="#status.index"/>
          <s:text name="variable"/>
          <s:property value="#indexValue"/>

          <!-- Other Stuff here -->
        </s:iterator>

When this runs I see the text "Index" and the value of #status.index
followed by the text "variable" but the value of #indexValue is not
displayed. What am I doing wrong?

Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.