This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I decided that I will use way where if have any problem I will call addActionError(getText("error")); and return ERROR.
Unfortunatly I'm using a lot of "type=chain" because I have call more method together. I found is a lot of troubles with using chain. I cant show errors in my <s:actionerror/> because error does not pass through chain.
Maybe only one resolution is use struts.xwork.chaining. I found that I should put
With using struts.xwork.chaining it is better but I have still trouble: I have 3 actions. I have to go from action updateTopic to adminTopics.jsp.
And when I set struts.xwork.chaining.copyErrors to true (others both are TRUE) method addTopic() returns Error but methods readTopic() and readConference() didn't run and application skip to page adminTopics.jsp and actionError is showed.
When I set struts.xwork.chaining.copyErrors to false, all methods run OK but <s:actionError> show nothing.