PlanetJava
Custom Search

java-stripes-user
[Top] [All Lists]

Re: clean urls without /action/*

Subject: Re: clean urls without /action/*
Date: Tue, 5 Feb 2008 22:05:22 -0600
You can't do what you want.  You either need a prefix of something like
/action/home (doesn't have to be the word action) or you have to have a
suffix like /home.action (again, doesn't have to be the word action).
Gregg
On Feb 5, 2008 7:01 PM, cameronf 
<cameron-07GvHFN/e45EfCMKe0UOsQC/[email protected]> wrote:
> OK. First post.
>
> New to many things, including Stripes. As a newbie, Stripes seems to make
> a lot
> of things fairly straightforward, and my hiccups have had more to do with
> my own
> learning curve. So the following problem may have a simple solution:
>
> Would like to implement the clean url's in Stripes 1.5
>
> Would like urls like:
>
> /home/...
> /login/...
> etc...
>
> corresponding to @UrlBinding("/home/...") in my action bean.
>
> but can only find examples for
>
> /action/home/...
> /action/login/...
>
> the /action/ seems important as it corresponds to the /action/*
> url-pattern in
> the servlet-mapping in my web.xml
>
> but I would like to not see "/action/". If I change the url-pattern to /*,
> I get
> an infinite loop as Stripes is continually redirecting to 'home.jsp'.
>
> What configuration do I need to get the urls I want?
>
> Thanks so much for your thoughts!
>
> 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: 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
msgmiddle
<Prev in Thread] Current Thread [Next in Thread>
Current Sitemap | © 2012 planetjava | Contact | Privacy Policy