I have been somewhat remiss in following up on this. Two months later...

I don't have any immediate suggestions, but I am curious about why this happens 
on Redirect and not on a direct hit.

Cameron



________________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Gunter
Sent: Friday, February 15, 2008 6:37 PM
To: Stripes Users List
Subject: Re: [Stripes-users] RedirectResolution URL behaviour with clean URLs

This is an interesting quandary. The event is added because it does have a 
default value, as indicated by @DefaultHandler. If you remove @DefaultHandler, 
then the event name will be omitted from the URL, but then it won't fire 
because you don't have a default handler. What to do?

I recently (since the beta release) had to make it illegal to assign a default 
value to $event in the form $event=foo. This is a tough one. Any suggestions on 
how to handle it?

-Ben

Cameron Falkenhagen wrote: 
OK, Stripes 1.5, using Ben's 'clean URL, sans prefix/suffix' patch:
 
So I have a RedirectResolution:
 
return new RedirectResolution("/foobar")
 
and I have a corresponding actionBean :
 
@UrlBinding("/foobar/{$event}")
public class FooBarActionBean implements ActionBean {...
 
With a default method of:
 
@DefaultHandler
public Resolution doSomething(){...}
 
The url in my browser's navbar after redirecting ends up being:
 
/foobar/doSomething
 
 
BUT I was hoping it would remain
 
/foobar  
(as it is shown in the redirect resolution)
 
Does this behave this way for others? Is this the expected behaviour? Can the 
desired behaviour (where the default event is NOT displayed in the resulting 
url, when it was NOT specified in the redirect resolution) be achieved?
 
Thanks!
 
Cameron

________________________________________

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

________________________________________

_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users
  


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to