SSH配置struts2.xml(1)

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
    <!-- 默认的视图主题 -->
    <constant name="struts.ui.theme" value="simple" />
    <!-- 默认可不写 -->
    <constant name="struts.objectFactory" value="spring" />
    <!-- 配置后缀名为.do 默认为.action -->
    <constant name="struts.action.extension" value="do,action" />
    <!-- URL编码 -->
    <constant name="struts.i18n.encoding" value="UTF-8" />

    <package name="basepackage" extends="struts-default">
        <global-results>
            <result name="message">/WEB-INF/page/share/message.jsp</result>
            <result name="directUrl">/WEB-INF/page/share/directUrl.jsp</result>
        </global-results>
    </package>
    <include file="product.xml" />
    <include file="control.xml" />
    <include file="basestruts.xml" />
</struts>    

 

posted @ 2013-04-02 09:34  谷文仁  阅读(111)  评论(0编辑  收藏  举报