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 20:17:25 -0800
Or,  if it is an absolute must, you can map each of urls that you want
stripes to process individually.
    <servlet-mapping>
        <servlet-name>StripesDispatcher</servlet-name>
        <url-pattern>home</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>StripesDispatcher</servlet-name>
        <url-pattern>login</url-pattern>
    </servlet-mapping>
....
, but this is exactly one of the problems that stripes has solved. 
________________________________
From: [email protected]xxxxxxx
[mailto:[email protected]xxxxxxx]
 On Behalf Of Gregg
Bolinger
Sent: Tuesday, February 05, 2008 8:05 PM
To: Stripes Users List
Subject: Re: [Stripes-users] clean urls without /action/*
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