A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
Struts2 question. Actions with the same result.
Konstantin Netkachev
Greenhorn
Joined: Jul 24, 2009
Posts: 15
posted
Aug 20, 2010 05:35:26
0
I have many actions with the same "input" result with the same redirection:
<action name="user" class="userAction"> <result name="input" type="redirectAction">login</result> <result name="success" type="tiles">user</result> </action> <action name="admin" class="adminAction"> <result name="input" type="redirectAction">login</result> <result name="success" type="tiles">admin</result> </action> <action name="employee" class="employeeAction"> <result name="input" type="redirectAction">login</result> <result name="success" type="tiles">employeeitem</result> </action>
Is there possibility to do something in order to not declare this result in every action?
May be somehow to define it in one place as default?
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Aug 20, 2010 07:09:46
0
Define a global result?
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Struts2 question. Actions with the same result.
Similar Threads
Struts 2.1 Need two different success results
redirect action not https?
Populating a Dropdown Box
Error while forwarding from struts.xml
https becomes http after redirectAction
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter