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.
To preserve messages across redirects you can use the message store interceptor, or home-brew your own solution if it doesn't work for you. Or don't redirect.
Jordan Smith
Ranch Hand
Joined: Apr 06, 2008
Posts: 89
posted
0
hi,
i implemented Message Store Interceptor like this for getVideoPage (where i need to know if there are action errors:
it works fine, but when i try to send a parameter to the action e.g. getVideoPage?videoId=3444, the videoId that i retrieve in the class is null!!
when i removed the interceptor declaration, it worked fine again.
If you define an action-specific interceptor you must define *all* interceptors for the action. If that's the only interceptor you have defined then you're missing the bulk of the Struts 2 functionality, which lives largely in its interceptors.
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.