首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

施用注解方式后struts2的配置

2012-08-21 
运用注解方式后struts2的配置?xml version1.0 encodingUTF-8?!DOCTYPE struts PUBLIC-//Apache

运用注解方式后struts2的配置
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>

<!-- <constant name="struts.multipart.saveDir" value="c:/temp"/> -->

<!--开发模式-->
<constant name="struts.devMode" value="true" />
<!--资源文件路径-->
<constant name="struts.convention.result.path" value="/" />
<!--搜索包含Action的包-->
<constant name="struts.convention.package.locators.basePackage" value="com.digitaltop" />
<constant name="struts.convention.package.locators" value="action" />
<!-- 地区 -->
<constant name="struts.locale" value="zh_CN" />
<!-- 国际化编码 -->
<constant name="struts.i18n.encoding" value="UTF-8" />
<!--  请求后缀扩展-->
<constant name="struts.action.extension" value="action,do,jsp,pdf" />

<!--后缀名-->
<constant name="struts.convention.action.suffix" value="Action" />





<package name="tggg-default" extends="struts-default,jasperreports-default">
<interceptors>
<interceptor name="tggg_login"
/>
<interceptor-stack name="myDefaultStack">
<interceptor-ref name="tggg_login" />
<interceptor-ref name="defaultStack" />
</interceptor-stack>
</interceptors>
<default-interceptor-ref name="myDefaultStack" />

<!-- 全局result -->
<global-results>
    <!-- 登录判断result -->
<result name="loginJudge" type="dispatcher">/login.jsp</result>
<!-- 权限判断result -->
<result name="TGGG_POWERINFO" type="plainText"></result>
</global-results>
</package>
</struts>

热点排行