在action中判断,if(是manager)return mapping.findForward("view");
else return return mapping.findForward("false");

解决方案 »

  1.   

    //value="Manager"中的Manager是Action中request.setAttribute("Type",type);标志管理员的字符串...
    <logic:present name="Type">
    <logic:equal name="Type" value="Manager"> 
    <html:link page="/manager.jsp" >管理</html:link>
    </logic:equal> 
    </logic:present>
      

  2.   

    在action中,request.getAttribute("Type");然后判断,if(manager)转到="/manager.jsp"
      

  3.   

    谢谢各位,问题解决了。特别感谢xunyiren(从jsp开始) 。但是我有但不明白,我在Struts的问当中看到的logic 的name属性只有只能是bean.
      

  4.   

    这是:logic 的equal说明 equal - Evaluate the nested body content of this tag if the requested variable is equal to the specified value. 
                 这是关于name属性的说明。The variable to be compared is the JSP bean specified by this attribute, if property is not specified, or the value of the specified property of this bean, if property is specified.
                这是property的说明:The variable to be compared is the property (of the bean specified by the name attribute) specified by this attribute. The property reference can be simple, nested, and/or indexed.