Advertisement

个人SSHS项目经验心得

阅读量:
复制代码
    1、
    application.xml导入其他子文件
    <import resource="applicationContext-staff.xml"/>
    Struts.xm1导入其他子文件
    <include file="struts/struts-staff.xml"></include>
    2、
    统一访问界面的UIAction 
    <action name="uiAction_*_*">
        <result>/WEB-INF/pages/{1}/{2}.jsp</result>
    </action>
    例如:<frame src="${pageContext.request.contextPath}/uiAction_fram`这里写代码片`e_left1.action" scrolling="no"/>
    3、
    登录拦截器
    protected String doIntercept(ActionInvocation invocation) throws Exception {
        //获得session中的对象
        Object obj = ActionContext.getContext().getSession().get("staff");

全部评论 (0)

还没有任何评论哟~