Struts2标签里面调用java方法 <s:if test="#session.user.hasPrivilegeByName(name)"> hasPrivilegeByName(name) 为User类中的一个java方法