Hi, you've reached the website of Mark Menard, Freemason, developer, businessman, photographer, motorcyclist and all around nice guy.
The main joy in my life is Sylva, my loving partner and friend. (You will see plenty of pictures of her. Also check out our site.) My professonal career is running a consulting firm concentrating on business automation and custom software. I enjoy software development, motorcycles, photography, dancing, freemasonry and travel.
Here you will find galleries of my latest photos, thoughts on software development, freemasonry, the occassional politics, and other things. Enjoy your time here.
Mark
An ongoing photographic study of Freemasonry.
To contact Mark send an email to mark@mjm.net. You will receive an auto response from my mail server to verify you're not a spammer.
© Mark Menard 2002-2007
Conversation Scope doesn't work after a redirect
Hi,
I want to implement your conversation interceptor, but have a little problem while using a redirect-action as result type (want to implement the POST-REDIRECT-GET Pattern):
I downloaded your tutorial and changed the struts.xml like this:
struts.xml
[action name="conversation" class="tutorial.ConversationAction"]
[interceptor-ref name="params" /]
[interceptor-ref name="conversation-scope" /]
[interceptor-ref name="defaultStack" /]
[result name="input" type="redirect-action"]/conversationRedirect[/result]
[result name="success"]/ConversationSuccess.jsp[/result]
[/action]
[action name="conversationRedirect" class="tutorial.ConversationAction" method="input"]
[interceptor-ref name="params" /]
[interceptor-ref name="conversation-scope" /]
[interceptor-ref name="defaultStack" /]
[result name="input"]/ConversationInput.jsp[/result]
[/action]
So I did a redirect instead of showing the view. The input method of the conversationRedirect action just returns "input". My problem is, that the page count of the model is not increased. To at the result page the count is 0 instead of 1.
Maybe you can help me with this problem.
Thanks
Brian
duckmailer@googlemail.com