空字符串
前端
function goto(){ getPage(${usersession.hasPrivilegeByName('Business Trip')},"",""); }
后端
if("".equals(orderItem)){ return getSession().createQuery("FROM Trip t WHERE t.name LIKE '%" +keyword+ "%' OR t.part LIKE '%" +keyword+ "%' OR t.destination LIKE '%" +keyword+ "%' ") .list(); } else { return getSession().createQuery("FROM Trip t WHERE t.name LIKE '%" +keyword+ "%' OR t.part LIKE '%" +keyword+ "%' OR t.destination LIKE '%" +keyword+ "%' ORDER BY "+orderItem+" "+orderKey) .list(); }