GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — codeFactory/java_src/struts.xml at master · hacxer/codeFactory

Expand file tree

/

struts.xml

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
50 lines (40 loc) · 2.04 KB
/

struts.xml

Copy path

File metadata and controls

50 lines (40 loc) · 2.04 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?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">
<!--
修改说明:
1.修改pakcage的namespace属性,因为URL访问规则是: /namesapce/Entity/method.do
2.根据你的包结构修改action节点的class属性
-->
<struts>
<constant name="struts.devMode" value="true" />
<!-- struts的URL扩展名 -->
<constant name="struts.action.extension" value="do" />
<!-- 允许访问静态成员变量 -->
<constant name="struts.ognl.allowStaticMethodAccess" value="true" />
<constant name="struts.custom.i18n.resources" value="i18n/messages"/>
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.enable.SlashesInActionNames" value="true" />
<package name="custom-default" extends="struts-default">
<result-types>
<result-type name="direct" class="cn.org.rapid_framework.struts2.dispatcher.DirectResult"/>
</result-types>
<interceptors>
<!-- 提供视图渲染的共享变量拦截器 -->
<interceptor name="sharedRenderVariableInterceptor" class="javacommon.struts2.interceptor.SharedRenderVariableInterceptor"/>
<interceptor-stack name="customDefaultCrudStack">
<interceptor-ref name="paramsPrepareParamsStack"/>
<interceptor-ref name="sharedRenderVariableInterceptor"/>
</interceptor-stack>
</interceptors>
<default-interceptor-ref name="customDefaultCrudStack"/>
</package>
<!-- 修改为你自己的namespace -->
<package name="default" namespace="/pages" extends="custom-default">
<!-- 通过URL访问的路径是 /namesapce/Entity/method.do -->
<action name="*/*" method="{2}" class="com.company.project.action.{1}Action">
<result name="*" type="direct">通过Action直接返回,这一行无需修改</result>
</action>
</package>
</struts>
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.