I'm using the latest version of stripes (got it from svn 4/9/2008) and I
have been having a lot of trouble with FlashScope. I got to a point where I
made a test case that I expected to work but it doesn't. Please let me know
what I'm doing wrong
When I click on the link on test1.jsp, test2.js
I'll bite. Why does TestActionBean's goToTest2() method perform no
flash scope magic? Doesn't it need something kind of like this:
RedirectResolution rr = new RedirectResolution(Test2ActionBean.class);
rr.flash(this);
return rr;
Regards,
David
Dan Kaplan wrote:
I'm using the latest version
Dan Kaplan-3 wrote:
>
>
> @DefaultHandler
> public Resolution goToTest2() {
> context.getMessages().add(new SimpleMessage("This is a
> message."));
> return new RedirectResolution(Test2ActionBean.class);
> }
>
>
Try:
@DefaultHandler
public Resolution g
4/10/2008 3:06 AM
To: Stripes Users List
Subject: Re: [Stripes-users] A FlashScope test case I expected to work
I'll bite. Why does TestActionBean's goToTest2() method perform no flash scope
magic? Doesn't it need something kind of like this:
RedirectResolution rr = new Redi
rn new RedirectResolution(Test2ActionBean.class);
}
test2.jsp still says this:
[]
0
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zenin,
Ruslan
Sent: Thursday, April 10, 2008 6:14 AM
To: Stripes Users List
Subject: Re: [Stripes-users] A FlashScope test case I expected to
To: Stripes Users List
Subject: Re: [Stripes-users] A FlashScope test case I expected to work
David,
>Why does TestActionBean's goToTest2() method perform no flash scope magic?
Because you are doing it wrong... ;) Read JavaDoc of "flash" method... it
*returns* RedirectR
Ok I figured this all out on irc. I also updated the wiki on the topic.
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dan Kaplan
Sent: Thursday, April 10, 2008 10:15 AM
To: 'Stripes Users List'
Subject: Re: [Stripes-users] A FlashScope test case I expect
That's strange--your example is almost textbook and should be working. Out
of curiosity, could you try placing a stripes messages tag in the middle of
your test2.jsp file?
--
View this message in context:
http://www.nabble.com/A-FlashScope-test-case-I-expected-to-work-tp16603192p16622043.html
S
t; To: stripes-users@lists.sourceforge.net
> Subject: Re: [Stripes-users] A FlashScope test case I expected to work
>
>
> That's strange--your example is almost textbook and should be working.
> Out
> of curiosity, could you try placing a stripes messages tag in the middle
&