I was under the impression that the <s:property> tag
could access page-scoped variables, but it doesn't
seem to work for me.

I am using the displaytag library for creating tables
as shown here:

<display:table id="row" name="locations"
requestURI="/AdminLocation.action" defaultsort="2">
  <display:column property="id" title="Id"
sortable="true" headerClass="sortable"/>
  <display:column property="name" title="Name"
sortable="true" headerClass="sortable"/>
  <display:column property="abbreviation"
title="Abbreviation" sortable="true"
headerClass="sortable"/>
  <display:column title="">id: <s:property
value="row.id"/></display:column>
</display:table>

In the last column I am trying to reference the
page-scoped "row" object that is created by
displaytag. For some reason, my use of the
<s:property> tag isn't working:

<s:property value="row.id"/>

Any ideas?

I can access the page-scoped "row" object using the
following JSTL code:

<c:out value="${row.id}"/>

I'd prefer to stick to the Struts 2 tags and not have
to use JSTL if possible. I just want less libraries in
volved.

-Bill


       
____________________________________________________________________________________
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.
http://new.toolbar.yahoo.com/toolbar/features/mail/index.php

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to