uri.xml
3.71 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<uri-config>
<!-- Server URI -->
<uri name="webSite">
<serverURI>http://localhost:8080</serverURI>
</uri>
<uri name="rootContext">
<contextPath></contextPath>
</uri>
<!-- ================================================================ -->
<!-- 静态资源flash、images、styles -->
<!-- ================================================================ -->
<!-- flash -->
<uri name="flash" extends="rootContext">
<namespace>/flash</namespace>
</uri>
<!-- images -->
<uri name="images" extends="rootContext">
<namespace>/images</namespace>
</uri>
<!-- styles -->
<uri name="styles" extends="rootContext">
<namespace>/styles</namespace>
</uri>
<!-- ================================================================ -->
<!-- 业务模块namespace -->
<!-- ================================================================ -->
<!-- home -->
<uri name="homeModule" extends="rootContext">
<namespace>/home</namespace>
</uri>
<!-- user -->
<uri name="userModule" extends="rootContext">
<namespace>/user</namespace>
</uri>
<!-- admin -->
<uri name="adminModule" extends="rootContext">
<namespace>/admin</namespace>
</uri>
<!-- store -->
<uri name="storeModule" extends="rootContext">
<namespace>/store</namespace>
</uri>
<!-- ================================================================ -->
<!-- 业务模块componentPath -->
<!-- ================================================================ -->
<uri name="petstoreHomeLink" extends="homeModule">
<componentPath>/home/homepage.htm</componentPath>
</uri>
<uri name="petstoreLoginLink" extends="userModule">
<componentPath>/user/login.htm</componentPath>
</uri>
<uri name="petstoreLoginEditLink" extends="userModule">
<componentPath>/user/loginEdit.htm</componentPath>
</uri>
<uri name="petstoreLogoutLink" extends="userModule">
<componentPath>/user/logout.htm</componentPath>
</uri>
<uri name="petstoreRegisterEditLink" extends="userModule">
<componentPath>/user/registerEdit.htm</componentPath>
</uri>
<uri name="petstoreRegisterLink" extends="userModule">
<componentPath>/user/register.htm</componentPath>
</uri>
<uri name="petstoreAccountEditLink" extends="userModule">
<componentPath>/account/edit.htm</componentPath>
</uri>
<uri name="petstoreAccountDetailLink" extends="userModule">
<componentPath>/account/detail.htm</componentPath>
</uri>
<uri name="petstoreAccountRegisterLink" extends="userModule">
<componentPath>/account/register.htm</componentPath>
</uri>
<uri name="petstoreViewCartLink" extends="storeModule">
<componentPath>/store/viewCart.htm</componentPath>
</uri>
<uri name="petstoreItemListLink" extends="storeModule">
<componentPath>/store/itemList.htm</componentPath>
</uri>
<uri name="petstoreAddItemLink" extends="storeModule">
<componentPath>/store/addItem.htm</componentPath>
</uri>
<uri name="petstoreRemoveItemLink" extends="storeModule">
<componentPath>/store/removeItem.htm</componentPath>
</uri>
<uri name="petstoreCategoryListLink" extends="storeModule">
<componentPath>/store/categoryList.htm</componentPath>
</uri>
<uri name="petstoreAdminCategoryListLink" extends="adminModule">
<componentPath>/admin/categoryList.htm</componentPath>
</uri>
<uri name="petstoreAdminItemListLink" extends="adminModule">
<componentPath>/admin/itemList.htm</componentPath>
</uri>
<uri name="petstoreAddProductLink" extends="adminModule">
<componentPath>/admin/addProduct.htm</componentPath>
</uri>
<uri name="petstoreDoAddProductLink" extends="adminModule">
<componentPath>/admin/doAddProduct.htm</componentPath>
</uri>
</uri-config>