遍历page
<#if onlineDoctPage?? && onlineDoctPage.list??> <#if onlineDoctPage.list?has_content> <#list onlineDoctPage.list as doct> <div class="experts clearfix"> <div class="doctor_pic fl"><a target="_blank" href="yshgrzy.aspx-id=32.htm" ><img src="${base}/${(doct.userImg)!}" width="60" height="75" border="0" /></a></div> <div class="doctor_details fl"> <div class="doctor_name"><span class="mr10">${(doct.realname)!}</span>${(doct.title.typename)!}</div> <div class="doctor_good">${(doct.good)!}<a target="_blank" href="${base}/doctorInfo.jhtml?userId=${(doct.userId)!}" >[详细]</a></div> <div class="consultation fr"><a target="_blank" href="${base}/ask_question/v_add_2.jhtml?yshortdid=${(doct.userId)!}" ><img src="${base}/res/front/images/img2.gif" width="86" height="23" border="0" /></a></div> </div> </div> </#list> </#if> </#if>
获取ip
RequestUtils.getIpAddr(request)
获取当前用户
JsUserInfo user = YhxlWebUtils.getUser(request);
获取pageSize
CookieUtils.getPageSize(request)