You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Dale Newfield <Da...@Newfield.org> on 2007/12/14 07:05:47 UTC
Re: URL questions...Was: Re: [struts] params and staticParams
Dale Newfield wrote:
> Dale Newfield wrote:
>> But are commas url friendly? I.E.: Is this bad?
>> http://mymachine/myapp/users/friendOf/amy,joe/attendedEvent/BobsBirthday.html
>
>
> I think http://www.ietf.org/rfc/rfc3986.txt says that this is OK.
As part of getting this working I wound up building a different type of
CompositeActionMapper, that I called NamespaceBasedActionMapper
It let me do this:
<constant name="struts.mapper.namespaceMapping"
value="/show:pseudoRestful,:struts"/>
to select which ActionMapper would be asked to map which requests.
If this would be appreciated, I can contribute it to the effort.
If I get at least two "+1"'s I'll create a JIRA issue and post the patches.
-Dale
P.S.: I wound up having to embed a reference to some data specific to
my app to build the ActionMapper that implements "pseudoRestful" above,
and it doesn't do a number of the bits that the other
RestfulActionMappers do, so I don't think that is worth contributing.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org