获得的值如何再运行一个处理函数再显示在界面上。
求助各位大神,遇到一个问题。我要在jsp上显示每一个用户的地区,但是用户类中地区是用long表示的,我想要在界面上显示转换后的string。后台有解码函数,但是不会在jsp上用。
核心就是:
<table id="sendertable">
<thead>
<tr>
<th>姓名</th>
<th>地区</th>
</tr>
</thead>
<tbody>
<s:iterator value="#request.senderlist" id="senderid">
<tr>
<td><s:property value="#senderid.name"/>
</td>
<td><s:property value="#senderid.code"/>
</td>
这样的话界面显示的就是表示地区的数字,我想把他转成字符串再做。。。