PlanetJava
Custom Search

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

Re: clean urls without /action/*

Subject: Re: clean urls without /action/*
Date: Wed, 6 Feb 2008 16:53:16 -0800 (PST)
With support for clean urls, Stripes is very close to supporting Restful URLs
which "provide users with a mental model of your site as a hierarchy of
information resources [... where ...] each URL maps to a resource." [1]
[1] http://www.artima.com/weblogs/viewpost.jsp?thread=153170
That's great, but the "/action" part is unhelpful in this regard; wasted
characters using up part of my 72 character budget for URLs that will fit on
one line without wrapping in an email.
I believe this is an example of the implementation unnecessarily imposing
itself into the URL space of the webapp. (Although not nearly as bad as
exposing .jsp or .asp extensions.)
Allen
Gregg Bolinger-7 wrote:
> 
> Seems like extra work for little gain.  What is the problem with 
> /action/home or /page/home or whatever you might choose?
> 
> Gregg
> 
> Allen Halsey wrote:
>> Leonard Gestrin wrote:
>>   
>>> 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. 
>>>
>>>
>>>     
>>
>> It would be good if the build process could automatically add these
>> servlet 
>> mappings based on the url mappings.
>>
>> Allen
>>
>>
>>
>>   
> 
> 
> -------------------------------------------------------------------------
> 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
> 
> 
-- 
View this message in context: 
http://www.nabble.com/clean-urls-without--action-*-tp15303400p15325373.html
Sent from the stripes-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
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/
msgmiddle
<Prev in Thread] Current Thread [Next in Thread>
Current Sitemap | © 2012 planetjava | Contact | Privacy Policy