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.
Could anybody say me what should I do?
posted 3 years ago
You can use the new version of Struts like Struts 2.3.14 which I proved working well.
The older version of Struts might had the BUG.
If you find new problems, talk to me email@example.com
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads