Hi Lev,
> i'm using DisplayTag with Stripes. on occasion, i want to format
> a field sent to a DisplayTag table. for instance, consider:
>
> <d:table name="${actionBean.entries}" id="entry" requestURI=""
> defaultsort="1">
> <d:column title="ID" property="id" sortable="true"/>
> <d:column title="Time" property="date" sortable="true"/>
> </d:table>
>
> i want to format 'property="date"' (the 2nd column) with something like:
>
> <s:text name="date" formatPattern="yyyy-MM-dd HH:mm" />
>
> is there a way to achieve this?
Sure there is, try this:
<d:column title="Time" sortable="true">
<s:format value="${entry.date}" formatPattern="yyyy-MM-dd HH:mm" />
</d:column>
Cheers,
Freddy
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users