<%@ page pageencoding= "UTF-8"%> <%@ taglib prefix= "s" uri= "/struts-tags"%> <%@ include file= "/common/ taglib.jsp "%> <script type=" Text/javascript "> $ (document). Ready (function () {table = $ (". Scroll_table ").
Scrolltable ({multiselect:false, height:380});
});
function showrealnamecontent (obj, value) {obj.title = value; } </script> <table class= "scroll_table" border= "0" cellspacing= "0" cellpadding= "0" width= "100%" > <thead > <tr> <th> Internet Café number </th> <th> internet café name </th> <th> remaining points </th> </tr> &L t;/thead> <s:iterator id= "obj" value= "#request. Searchdto.resultlist" > <tbody> <tr resid= "${request . obj.id} "id=" Tr${request.obj.id} "> <td>${request.obj.serviceCode} </td> <td onmouseover=" s Howrealnamecontent (This, ' ${request.obj.servicename} ') "> <s:if test=" #request. Obj.serviceName.length () >9 "> <s:property value= "#obj. Servicename.substring (0,9)"/> </s:if> <s:else> ${request.obj.servicename} ;/s:else> </td> <td>${request.obj.chargeCount} </td> </tr> </tbody&
Gt
</s:iterator> </table> <displaywrap:pagination name= "_pagination" requesturi= "formid=" "append=" "
loadfunction= "Loadingfunc" submitcall= "SearchQuery"/>
Where: Key code:
function showrealnamecontent (obj, value) {
obj.title = value;
}
<TD onmouseover= "showrealnamecontent (This, ' ${request.obj.servicename} ')" >
<s:if test= "# Request.obj.serviceName.length () >9 ">
<s:property value=" #obj. Servicename.substring (0,9)/>
</s:if>
<s:else>
${request.obj.servicename}
</s:else>
</td>