Randy,
There's a couple of ways you could do that but what i'd recommend is
having an event handler that simply redirects to another event handler,
adding the search terms as a parameter. You could also use the same
event handler, POST from the form, check from within the event handler
if the method was POST and if so redirect.
Your UrlBinding would look something like this:
@UrlBinding("/list/{$event}/{searchText}")
Aaron
Randy Jones wrote:
> Newbie question. Using Stripes 1.5.
>
> Given this JSP fragment:
>
> <stripes:form id="searchBox" beanclass="org.randy.web.ListViewBean"
> focus="searchText">
> <stripes:text name="searchText" value="Search our Site" class="text
> medium"/>
> <stripes:submit name="search" value="Search" class="button"/>
> </stripes:form>
>
> I would like my URL to show the searchText value so that it can be bookmarked.
> If "stuff" was entered in the field I would like the URL to look like this:
>
> http://www.randy.com/myapp/list/stuff.html
>
> or
>
> http://www.randy.com/myapp/list.html?search=stuff
>
> I tried changing the form method to GET but than I get an un-pretty URl.
>
> Thanks,
>
> Randy
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users