1
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
<!DOCTYPE struts PUBLIC
|
3
|
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
|
4
|
"http://struts.apache.org/dtds/struts-2.0.dtd">
|
5
|
<struts>
|
6
|
<package name="myDriver" namespace="/" extends="struts-default">
|
7
|
<global-results>
|
8
|
<result name="error">/pages/myDriver/error.jsp
|
9
|
</result>
|
10
|
</global-results>
|
11
|
|
12
|
<action name="Account" class="gr.uoa.di.driver.web.myDriver.Account">
|
13
|
<result name="input">/pages/myDriver/register.jsp</result>
|
14
|
<result type="redirect">MyDashboard.action</result>
|
15
|
</action>
|
16
|
<action name="Login" method="login" class="springManagedAccountAction">
|
17
|
<result name="error">/pages/myDriver/register.jsp
|
18
|
</result>
|
19
|
<result type="redirect">${url}?${params}</result>
|
20
|
</action>
|
21
|
<action name="Logout" method="logout"
|
22
|
class="gr.uoa.di.driver.web.myDriver.Account">
|
23
|
<result name="error">/pages/myDriver/register.jsp
|
24
|
</result>
|
25
|
<result type="redirect">Welcome.action</result>
|
26
|
</action>
|
27
|
<action name="Register" method="register" class="springManagedAccountAction">
|
28
|
<result name="error">/pages/myDriver/register.jsp
|
29
|
</result>
|
30
|
<result>/pages/myDriver/register.jsp
|
31
|
</result>
|
32
|
</action>
|
33
|
<action name="Activate" method="activate" class="springManagedAccountAction">
|
34
|
<result name="error">/pages/myDriver/register.jsp
|
35
|
</result>
|
36
|
<result>/pages/search/welcome.jsp</result>
|
37
|
</action>
|
38
|
<action name="showRepository" method="showRepository"
|
39
|
class="springManagedRepositoriesAction">
|
40
|
<result>/pages/myDriver/repository.jsp
|
41
|
</result>
|
42
|
</action>
|
43
|
<action name="SearchWithinTheRepository" method="searchWithinTheRepository"
|
44
|
class="springManagedRepositoriesAction">
|
45
|
<result type="redirectAction">
|
46
|
<param name="actionName">showResults</param>
|
47
|
<param name="parse">true</param>
|
48
|
<param name="query">${query}</param>
|
49
|
<param name="page">${page}</param>
|
50
|
<param name="size">${size}</param>
|
51
|
<param name="referer">showResults</param>
|
52
|
</result>
|
53
|
</action>
|
54
|
|
55
|
<action name="EditUserPassword" method="editPassword"
|
56
|
class="gr.uoa.di.driver.web.myDriver.ResetPassword">
|
57
|
<result>/pages/myDriver/editPassword.jsp
|
58
|
</result>
|
59
|
</action>
|
60
|
|
61
|
<action name="ResetPassword" class="gr.uoa.di.driver.web.myDriver.ResetPassword">
|
62
|
<result>/pages/myDriver/editPassword.jsp
|
63
|
</result>
|
64
|
<result name="error">
|
65
|
/pages/myDriver/editPassword.jsp
|
66
|
</result>
|
67
|
</action>
|
68
|
|
69
|
<action name="ResetUserPassword" method="resetPassword"
|
70
|
class="gr.uoa.di.driver.web.myDriver.ResetPassword">
|
71
|
<result name="error">
|
72
|
/pages/myDriver/resetPassword.jsp
|
73
|
</result>
|
74
|
<result>/pages/myDriver/resetPassword.jsp
|
75
|
</result>
|
76
|
</action>
|
77
|
|
78
|
<action name="SaveUserPassword" method="savePassword"
|
79
|
class="gr.uoa.di.driver.web.myDriver.ResetPassword">
|
80
|
<result name="error">
|
81
|
/pages/myDriver/resetPassword.jsp
|
82
|
</result>
|
83
|
<result>/pages/myDriver/resetPasswordStatus.jsp
|
84
|
</result>
|
85
|
</action>
|
86
|
|
87
|
<action name="Help" class="gr.uoa.di.driver.web.myDriver.Help">
|
88
|
<result>${helpPage}</result>
|
89
|
</action>
|
90
|
|
91
|
<action name="Refresh"
|
92
|
class="gr.uoa.di.driver.web.myDriver.Refresh">
|
93
|
<result>/pages/myDriver/refresh2.jsp</result>
|
94
|
</action>
|
95
|
|
96
|
<action name="AllDRIVERCollections"
|
97
|
class="gr.uoa.di.driver.web.myDriver.BrowseCollections">
|
98
|
<result>/pages/myDriver/allCollections.jsp</result>
|
99
|
</action>
|
100
|
|
101
|
</package>
|
102
|
|
103
|
|
104
|
<package name="myDriverSecure" namespace="/" extends="struts-default">
|
105
|
|
106
|
<interceptors>
|
107
|
|
108
|
<interceptor name="authenticationInterceptor"
|
109
|
class="gr.uoa.di.driver.web.interceptors.AuthenticationInterceptor" />
|
110
|
|
111
|
<interceptor-stack name="secureStack">
|
112
|
<interceptor-ref name="authenticationInterceptor" />
|
113
|
<interceptor-ref name="defaultStack" />
|
114
|
</interceptor-stack>
|
115
|
|
116
|
</interceptors>
|
117
|
|
118
|
<default-interceptor-ref name="secureStack" />
|
119
|
|
120
|
<global-results>
|
121
|
<result name="error">/pages/myDriver/error.jsp
|
122
|
</result>
|
123
|
<result name="login" type="chain">
|
124
|
<param name="actionName">Account</param>
|
125
|
</result>
|
126
|
|
127
|
</global-results>
|
128
|
|
129
|
<action name="addToEPublication"
|
130
|
class="springManagedEPCreateAction" method="addToEPublication">
|
131
|
<result>/pages/ep/createEPublication.jsp</result>
|
132
|
<result name="input" type="redirectAction">MyDropbox.action</result>
|
133
|
</action>
|
134
|
|
135
|
<action name="saveEPublication"
|
136
|
class="springManagedEPCreateAction" method="saveEPublication">
|
137
|
<result type="redirectAction">
|
138
|
<param name="actionName">showEPublication</param>
|
139
|
<param name="epId">${id}</param>
|
140
|
</result>
|
141
|
<result name="input" type="redirectAction">MyDropbox.action</result>
|
142
|
</action>
|
143
|
|
144
|
|
145
|
<action name="MyDashboard" class="gr.uoa.di.driver.web.myDriver.MyDashboard">
|
146
|
<result>/pages/myDriver/dashboard.jsp
|
147
|
</result>
|
148
|
</action>
|
149
|
|
150
|
<action name="Profile" class="springManagedProfileAction">
|
151
|
<result>/pages/myDriver/myProfile.jsp
|
152
|
</result>
|
153
|
</action>
|
154
|
<action name="ProfileUpdate" method="updateProfile"
|
155
|
class="springManagedProfileAction">
|
156
|
<result>/pages/search/welcome.jsp</result>
|
157
|
</action>
|
158
|
<action name="ImageUpload" class="springManagedProfileAction"
|
159
|
method="uploadUserPhoto">
|
160
|
<result type="redirectAction">Profile</result>
|
161
|
</action>
|
162
|
|
163
|
|
164
|
<action name="MyFilter" class="gr.uoa.di.driver.web.myDriver.MyFilter">
|
165
|
<result>/pages/myDriver/myFilter.jsp
|
166
|
</result>
|
167
|
</action>
|
168
|
<action name="RemoveFilter" method="remove"
|
169
|
class="gr.uoa.di.driver.web.myDriver.MyFilter">
|
170
|
<result type="redirectAction">MyFilter</result>
|
171
|
</action>
|
172
|
<action name="SaveAsAFilter" method="saveAsAFilter"
|
173
|
class="gr.uoa.di.driver.web.myDriver.MyFilter">
|
174
|
<result type="redirectAction">MyFilter</result>
|
175
|
</action>
|
176
|
<action name="FilterAlert" method="changeAlert"
|
177
|
class="gr.uoa.di.driver.web.myDriver.MyFilter">
|
178
|
<result type="redirectAction">MyFilter</result>
|
179
|
</action>
|
180
|
|
181
|
<action name="MyQueries"
|
182
|
class="gr.uoa.di.driver.web.myDriver.MyQueries">
|
183
|
<result>/pages/myDriver/myQueries.jsp</result>
|
184
|
</action>
|
185
|
<action name="RemoveQuery"
|
186
|
class="gr.uoa.di.driver.web.myDriver.MyQueries"
|
187
|
method="removeQuery">
|
188
|
<result type="redirectAction">MyQueries</result>
|
189
|
</action>
|
190
|
<action name="SaveAsAQuery" method="saveAsAQuery"
|
191
|
class="gr.uoa.di.driver.web.myDriver.MyQueries">
|
192
|
<result type="redirectAction">MyQueries</result>
|
193
|
</action>
|
194
|
<action name="QueryAlert"
|
195
|
class="gr.uoa.di.driver.web.myDriver.MyQueries"
|
196
|
method="changeAlertForQuery">
|
197
|
<result type="redirectAction">MyQueries</result>
|
198
|
</action>
|
199
|
|
200
|
<!-- Add My Alerts -->
|
201
|
<action name="MyAlerts" class="gr.uoa.di.driver.web.myDriver.MyAlerts">
|
202
|
<result>/pages/myDriver/myAlerts.jsp
|
203
|
</result>
|
204
|
</action>
|
205
|
|
206
|
<!-- Collections -->
|
207
|
<action name="BrowseCollections"
|
208
|
class="gr.uoa.di.driver.web.myDriver.BrowseCollections">
|
209
|
<result>/pages/myDriver/myCollections.jsp</result>
|
210
|
</action>
|
211
|
|
212
|
|
213
|
<action name="ManageCollections"
|
214
|
class="gr.uoa.di.driver.web.myDriver.ManageCollections">
|
215
|
<result>/pages/myDriver/editCollections.jsp</result>
|
216
|
</action>
|
217
|
|
218
|
<action name="SaveCollection"
|
219
|
class="gr.uoa.di.driver.web.myDriver.CreateCollection" method="saveCollection">
|
220
|
<result>/pages/myDriver/collection.jsp</result>
|
221
|
</action>
|
222
|
|
223
|
<action name="CreateCollection"
|
224
|
class="gr.uoa.di.driver.web.myDriver.CreateCollection">
|
225
|
<result>/pages/myDriver/collection.jsp</result>
|
226
|
</action>
|
227
|
|
228
|
|
229
|
<!-- Drop Box -->
|
230
|
<action name="MyDropbox" class="springManagedDropBoxAction">
|
231
|
<result>/pages/myDriver/dropbox.jsp</result>
|
232
|
</action>
|
233
|
<action name="AddDocumentsToCollection"
|
234
|
class="springManagedDropBoxAction" method="addToCollection">
|
235
|
<result>/pages/search/welcome.jsp</result>
|
236
|
</action>
|
237
|
<action name="AddDocumentsToCommunity"
|
238
|
class="springManagedDropBoxAction" method="addToCommunity">
|
239
|
<result>/pages/search/welcome.jsp</result>
|
240
|
</action>
|
241
|
<action name="DeleteDocuments"
|
242
|
class="springManagedDropBoxAction" method="delete">
|
243
|
<result type="redirectAction">MyDropbox</result>
|
244
|
</action>
|
245
|
</package>
|
246
|
|
247
|
<package name="jsonSmd" namespace="/" extends="json-default">
|
248
|
<interceptors>
|
249
|
<interceptor-stack name="jsonSmdStack">
|
250
|
<interceptor-ref name="defaultStack"></interceptor-ref>
|
251
|
<interceptor-ref name="json">
|
252
|
<param name="enableSMD">true</param>
|
253
|
</interceptor-ref>
|
254
|
</interceptor-stack>
|
255
|
</interceptors>
|
256
|
<default-interceptor-ref name="jsonSmdStack" />
|
257
|
</package>
|
258
|
|
259
|
<package name="RPC" namespace="/" extends="jsonSmd">
|
260
|
<action name="SMDAction"
|
261
|
class="gr.uoa.di.driver.web.myDriver.SMDAction" method="smd">
|
262
|
<result type="json">
|
263
|
<param name="enableSMD">true</param>
|
264
|
</result>
|
265
|
</action>
|
266
|
<action name="AddToDropbox"
|
267
|
class="springManagedAddToDropboxAction" method="smd">
|
268
|
<result type="json">
|
269
|
<param name="enableSMD">true</param>
|
270
|
</result>
|
271
|
</action>
|
272
|
<action name="CollectionInfo"
|
273
|
class="springManagedCollectionAction" method="smd">
|
274
|
<result type="json">
|
275
|
<param name="enableSMD">true</param>
|
276
|
</result>
|
277
|
</action>
|
278
|
|
279
|
<action name="EPublication"
|
280
|
class="springManagedEPublication" method="smd">
|
281
|
<result type="json">
|
282
|
<param name="enableSMD">true</param>
|
283
|
</result>
|
284
|
</action>
|
285
|
|
286
|
</package>
|
287
|
</struts>
|