displayTag can only see request parameters, not the struts2 value stack.
this is solved/worked-around by setting a variable in the request scope:
(example from apppfuse194 userList.jsp)
<s:set name="userList" value="users" scope="request"/>
<display:table name="userList" cellspacing="0" cellpadding="0" requestURI=""
defaultsort="1" id="users"
pagesize="50" class="tableau" export="true" sort="list">
<display:column property="username" escapeXml="true" sortable="true"
titleKey="user.usrLogin" style="width: 25%"
url="/editUser.html?from=list" paramId="username"
paramProperty="username"/>
...
</display:table>
Hope that helps
VJ22 wrote:
>
> Hello,
>
> Struts 2 question.....Do my action classes have to be cofigured via Spring
> if their values have to be retrieved of the value stack ?
>
> I got a list in my action class which is to be displayed via the display
> tag....I got a corresponding "get" method too...unfortunately it does not
> work...When I keep it in the request scope by explicitly using
> request.getAttribute it works fine ?
>
> A system.out.println() on the getmethod() displays the corresponding
> output...so the get method is indeed getting called but it does not seem
> to recognize the scoped variable ?
>
> Any pointers ?
>
> Rgds...VJ
>
--
View this message in context:
http://www.nabble.com/DisplayTag-and-Struts-2-tf3334467s2369.html#a9273176
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]