forked from framgia/Java-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstruts-user.xml
More file actions
23 lines (20 loc) · 809 Bytes
/
struts-user.xml
File metadata and controls
23 lines (20 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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>
<!-- Configure NameSpace for action web -->
<package name="User" namespace="/user" extends="default-web">
<action name="findByUserId*" class="springUserAction" method="findByUserId">
<param name="user.user_id">{1}</param>
<result name="success">User.Info</result>
<result name="input">User.Info</result>
<result name="error">User.Info</result>
</action>
<action name="findByUsername*" class="springUserAction" method="findByUsername">
<param name="user.username">{1}</param>
<result name="success">User.Info</result>
<result name="error">User.Info</result>
</action>
</package>
</struts>