"If a submit causes validation errors, the browser's title bar will show 
the POST generated URL. (This can be worked around by *always* 
redirecting after posts, as I once had to do on a previous project, but 
that's a lot of effort for a small gain.)"

Actually, that isn't even true.  I just did a test.  My original URL:

http://localhost:8080/app/action/login

This displays the login form.  After I submit the login form and if I 
get validation errors, this is my URL:

http://localhost:8080/app/action/login

Gregg


Levi Hoogenberg wrote:
> On Sun, Aug 10, 2008 at 9:32 PM, Gregg Bolinger 
> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Well, there are a couple of things here.
>
>     First, you should really use the beanclass attribute of the s:form
>     tag.
>     Stripes will then determine your action for you.  That way, if you
>     decide to change your UrlBinding you won't have to search through
>     JSP(s)
>     to change your actions manually.
>
>
> But if you rename or move your action bean, you'll have to replace all 
> the beanclass attribute values. So that's not that great either, IMHO.
>  
>
>     Secondly, you really don't need to care what the URL looks like for a
>     POST.  The user should never see a POST generated URL. 
>
>
>  If a submit causes validation errors, the browser's title bar will 
> show the POST generated URL. (This can be worked around by *always* 
> redirecting after posts, as I once had to do on a previous project, 
> but that's a lot of effort for a small gain.)
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>   


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to