问题是这样的,在一个使用tapestry+spring+hibernate开发的一个系统中需要用到从数据库中调出名单数据,但是现在出现一个这样的问题就是从数据库中调出来的名字因为名字中有些是三个字有些是两个字所以显示在页面上就显的很不整齐,导致页面很难看,相关代码如下:
<tr>
            <td height="320" valign="top">
<span jwcid="@Foreach" source="ognl:slist" value="ognl:item" index="ognl:index"> 
 <span jwcid="@Conditional" condition="ognl:idd==0">
               <a href="javascript:window.alert('登录后才能查看')" class=newsa ><span  jwcid="@Insert" value="ognl:item.rname"/></a>   
               </span> 
               <span jwcid="@Conditional" condition="ognl:idd==1">
              <a href="#" class=newsa target="_blank"  jwcid="@ExternalLink" parameters='ognl:item.id' page="viewStu"><span  jwcid="@Insert" value="ognl:item.rname"/></a>    //显示一个名字
               </span>
               <span jwcid="@Conditional" condition="ognl:(index+1)%6!=0">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //名字之间设置的空格,也是问题所在,但是在tapestry的格式里我不知道如何修改,用了align=left 都没用
                </span>
               <span jwcid="@Conditional" condition="ognl:(index+1)%6==0">
               <br>
             </span>
 
            </span>
 <span jwcid="@Conditional" condition="ognl:flage==1">
 没有你想要的记录
 </span>
</td>
          </tr>
请大家帮忙看一下哦,能使名字显示的整齐有什么方法吗?不整齐情况是这样的比如一个名单张小名    张小华   张小长
张华    张小小   张小小这样就很难看哦,希望大家帮下忙,谢谢了!