This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
My requirement is to redirect from login page to various other pages depending upon the role of the user as each user is provided with a set of rights. Please tell me how we can define result types? At present,using the xwork jar the types available are SUCCESS,INPUT,LOGIN,ERROR,NONE.
Result names can be any String value. The xwork values are simply commonly used defaults. Struts maps the return value of the execute method to what's declared in struts.xml. If you want to get fancy and use symbols instead of String literals, create an interface with the role names as static Strings and have your action "implement" it.