Tapestry has gone back and forth on this very subject.

The problem is that the nice long readable URLs make it very hard to create
relative URLs to static methods.  You must have missed 2.1 where I switched
it back and forth a few times.  Tried to make up for it using the HTML
<base> tag, but that had its own problems (for apps hosted behind a
firewall).



----- Original Message -----
From: "Viktor Szathmary" <[EMAIL PROTECTED]>
To: "Tapestry Developer" <[EMAIL PROTECTED]>
Sent: Saturday, October 19, 2002 5:01 PM
Subject: [Tapestry-developer] nice URLs


> hi,
>
> i have this fascination with nice human readable URLs... :-) however,
> the urls generated by tapestry are not very pretty... is there a way to
> alter the URL generating/interpreting strategy somehow? at least for the
> external service it would be nice, instead of
>
>     http://localhost/foo/bar?service=external&context=Page&sp=foo
>
> to have
>
>     http://localhost/foo/bar/external/Page?foo
>
> or something like this...  perhaps having the ability to set a default
> service would be nice too, so you could omit the "external" part from
> the URL...
>
> i'm not familiar with the tapestry sources - is the URL building
> strategy modular? if not, how though it would be to refactor it?
>
> right now what i can think of as a solution, is to write some sort of
>  mapping servlet (that uses RequestDispatcher.forward()) and override
> ExternalLink to generate the links differently - not too pretty i think...
>
> best regards,
>     viktor
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:
> Access Your PC Securely with GoToMyPC. Try Free Now
> https://www.gotomypc.com/s/OSND/DD
> _______________________________________________
> Tapestry-developer mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/tapestry-developer
>



-------------------------------------------------------
This sf.net email is sponsored by:
Access Your PC Securely with GoToMyPC. Try Free Now
https://www.gotomypc.com/s/OSND/DD
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to