You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by AndersLandberg <ah...@gmail.com> on 2008/12/10 09:02:51 UTC

smart URLs

For a CMS project I require the following functionality:

Translate/map a URL like
'http://www.mydomain.com/marketnews/asiapacific/latest' into an action with
request parameters 'marketnews', 'asiapacific', 'latest'.

Background:

I have a virtual file/folder system in a database and want to map a URL into
the file system to retrieve content.

Alternatively, I have used this method in the past:

http://www.mydomain.com/content.action?path=marketnews/asiapacific/latest


Thank you for suggestions and comments.

Anders
-- 
View this message in context: http://www.nabble.com/smart-URLs-tp20930404p20930404.html
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: smart URLs

Posted by Philip Luppens <ph...@gmail.com>.
On Wed, Dec 10, 2008 at 9:02 AM, AndersLandberg <ah...@gmail.com> wrote:
>
> For a CMS project I require the following functionality:

Please post questions on the struts user mailing list. The dev list is
for the development of the Struts framework itself.

- Phil

>
> Translate/map a URL like
> 'http://www.mydomain.com/marketnews/asiapacific/latest' into an action with
> request parameters 'marketnews', 'asiapacific', 'latest'.
>
> Background:
>
> I have a virtual file/folder system in a database and want to map a URL into
> the file system to retrieve content.
>
> Alternatively, I have used this method in the past:
>
> http://www.mydomain.com/content.action?path=marketnews/asiapacific/latest
>
>
> Thank you for suggestions and comments.
>
> Anders
> --
> View this message in context: http://www.nabble.com/smart-URLs-tp20930404p20930404.html
> Sent from the Struts - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>



-- 
"We cannot change the cards we are dealt, just how we play the hand."
- Randy Pausch

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org