You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Paul Ferraro <pm...@columbia.edu> on 2004/08/13 00:38:28 UTC

Re: Another Tapestry-driven web site launched

I finally got around to posting to the wiki.  The new page is under the 
Tips & Tricks section:

http://wiki.apache.org/jakarta-tapestry/FriendlyUrls

I've also completely redesigned the way the urls are generated and 
interpreted.  The details are all on the wiki page.

As always, comments are appreciated...

Paul

Howard Lewis Ship wrote:

>Wow! You've prototyped Tapstry 3.1 for me :-)  Only had a chance to
>look at the home page (I'm at a client) but it does look sweet.  Yada,
>yada, please post to the wiki, yada, yada.
>
>On Mon, 26 Jul 2004 14:23:21 -0700, Paul Ferraro <pm...@columbia.edu> wrote:
>  
>
>>I decided to implement my own url scheme for the following reasons:
>>- better J2EE security control
>>- more user friendly
>>- more search engine friendly
>>
>>Here's how I did it...
>>
>>There are 2 parts: generating and interpreting.
>>
>>To generate the urls, I use custom PageLink and ExternalLink components
>>that utilize a custom ILink implementation that generate the urls using
>>the following pattern:
>><path-to-page-specification>/<page-name>.htm
>>The path-to-page-specification is taken from my application specification.
>>
>>e.g.
>><page name="crisisresolution"
>>specification-path="resolution/CrisisResolution.page"/>
>>path-to-page-specification = resolution/
>>page-name = crisisresolution
>>generated url = /resolution/crisisresolution.htm
>>
>>Using lower case page names was done at the insistence of my site
>>developer...
>>
>>To interpret the urls, I have a custom Tapestry servlet that is mapped
>>to the url pattern *.htm.
>>In my service() method, if the url query string contains "sp" (i.e.
>>Tapestry.PARAMETERS_QUERY_PARAMETER_NAME), then I generate a Tapestry
>>external link, if not I generate a page link.
>>
>>e.g.
>>http://www.identitytheft911.com/resolution/crisisresolution.htm
>>.... translates to ...
>>http://www.identitytheft911.com/app?service=page/crisisresolution
>>
>>http://www.identitytheft911.com/login.htm?sp=T
>>.... translates to ...
>>http://www.identitytheft911.com/app?service=external/login&sp=T
>>
>>I then just do a simple servlet forward to the translated url.
>>
>>Paul
>>
>>
>>
>>Jamie Orchard-Hays wrote:
>>
>>    
>>
>>>Paul, how are you doing the URLs? I see they all have normal
>>>/path/to/myfile.htm paths.
>>>
>>>Jamie
>>>
>>>----- Original Message -----
>>>From: "Paul Ferraro" <pm...@columbia.edu>
>>>To: "Tapestry users" <ta...@jakarta.apache.org>
>>>Sent: Monday, July 26, 2004 4:23 PM
>>>Subject: Another Tapestry-driven web site launched
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>We've just completed the month long task of converting our company's
>>>>300+ page public web site from JSPs to Tapestry.
>>>>
>>>>http://www.identitytheft911.com
>>>>
>>>>Features of interest:
>>>>- Friendly URLs for page and external services (e.g. home.htm,
>>>>resolution/crisisresolution.htm)
>>>>- Virtual host-driven "localization" (3 branded sites generated from the
>>>>same web application)
>>>>   (see http://www.libertyidtheft.com,
>>>>http://www.identitytheft911-usmc.com)
>>>>- J2EE security (utilizes friendly URLs)
>>>>   (see http://www.identitytheft911-usmc.com)
>>>>
>>>>Paul
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>>
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>>    
>>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Another Tapestry-driven web site launched

Posted by David Ezzio <de...@ysoft.com>.
Ooh, very nice work!

David

Harish Krishnaswamy wrote:

> Wow, this looks awesome. This is great work, bravo!
> 
> -Harish
> 
> On Thu, 12 Aug 2004 15:38:28 -0700, Paul Ferraro <pm...@columbia.edu> wrote:
> 
>>I finally got around to posting to the wiki.  The new page is under the
>>Tips & Tricks section:
>>
>>http://wiki.apache.org/jakarta-tapestry/FriendlyUrls
>>
>>I've also completely redesigned the way the urls are generated and
>>interpreted.  The details are all on the wiki page.
>>
>>As always, comments are appreciated...
>>
>>Paul
>>
>>Howard Lewis Ship wrote:
>>
>>
>>>Wow! You've prototyped Tapstry 3.1 for me :-)  Only had a chance to
>>>look at the home page (I'm at a client) but it does look sweet.  Yada,
>>>yada, please post to the wiki, yada, yada.
>>>
>>>On Mon, 26 Jul 2004 14:23:21 -0700, Paul Ferraro <pm...@columbia.edu> wrote:
>>>
>>>
>>>
>>>>I decided to implement my own url scheme for the following reasons:
>>>>- better J2EE security control
>>>>- more user friendly
>>>>- more search engine friendly
>>>>
>>>>Here's how I did it...
>>>>
>>>>There are 2 parts: generating and interpreting.
>>>>
>>>>To generate the urls, I use custom PageLink and ExternalLink components
>>>>that utilize a custom ILink implementation that generate the urls using
>>>>the following pattern:
>>>><path-to-page-specification>/<page-name>.htm
>>>>The path-to-page-specification is taken from my application specification.
>>>>
>>>>e.g.
>>>><page name="crisisresolution"
>>>>specification-path="resolution/CrisisResolution.page"/>
>>>>path-to-page-specification = resolution/
>>>>page-name = crisisresolution
>>>>generated url = /resolution/crisisresolution.htm
>>>>
>>>>Using lower case page names was done at the insistence of my site
>>>>developer...
>>>>
>>>>To interpret the urls, I have a custom Tapestry servlet that is mapped
>>>>to the url pattern *.htm.
>>>>In my service() method, if the url query string contains "sp" (i.e.
>>>>Tapestry.PARAMETERS_QUERY_PARAMETER_NAME), then I generate a Tapestry
>>>>external link, if not I generate a page link.
>>>>
>>>>e.g.
>>>>http://www.identitytheft911.com/resolution/crisisresolution.htm
>>>>.... translates to ...
>>>>http://www.identitytheft911.com/app?service=page/crisisresolution
>>>>
>>>>http://www.identitytheft911.com/login.htm?sp=T
>>>>.... translates to ...
>>>>http://www.identitytheft911.com/app?service=external/login&sp=T
>>>>
>>>>I then just do a simple servlet forward to the translated url.
>>>>
>>>>Paul
>>>>
>>>>
>>>>
>>>>Jamie Orchard-Hays wrote:
>>>>
>>>>
>>>>
>>>>
>>>>>Paul, how are you doing the URLs? I see they all have normal
>>>>>/path/to/myfile.htm paths.
>>>>>
>>>>>Jamie
>>>>>
>>>>>----- Original Message -----
>>>>>From: "Paul Ferraro" <pm...@columbia.edu>
>>>>>To: "Tapestry users" <ta...@jakarta.apache.org>
>>>>>Sent: Monday, July 26, 2004 4:23 PM
>>>>>Subject: Another Tapestry-driven web site launched
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>We've just completed the month long task of converting our company's
>>>>>>300+ page public web site from JSPs to Tapestry.
>>>>>>
>>>>>>http://www.identitytheft911.com
>>>>>>
>>>>>>Features of interest:
>>>>>>- Friendly URLs for page and external services (e.g. home.htm,
>>>>>>resolution/crisisresolution.htm)
>>>>>>- Virtual host-driven "localization" (3 branded sites generated from the
>>>>>>same web application)
>>>>>>  (see http://www.libertyidtheft.com,
>>>>>>http://www.identitytheft911-usmc.com)
>>>>>>- J2EE security (utilizes friendly URLs)
>>>>>>  (see http://www.identitytheft911-usmc.com)
>>>>>>
>>>>>>Paul
>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Another Tapestry-driven web site launched

Posted by Harish Krishnaswamy <ha...@gmail.com>.
Wow, this looks awesome. This is great work, bravo!

-Harish

On Thu, 12 Aug 2004 15:38:28 -0700, Paul Ferraro <pm...@columbia.edu> wrote:
> I finally got around to posting to the wiki.  The new page is under the
> Tips & Tricks section:
> 
> http://wiki.apache.org/jakarta-tapestry/FriendlyUrls
> 
> I've also completely redesigned the way the urls are generated and
> interpreted.  The details are all on the wiki page.
> 
> As always, comments are appreciated...
> 
> Paul
> 
> Howard Lewis Ship wrote:
> 
> >Wow! You've prototyped Tapstry 3.1 for me :-)  Only had a chance to
> >look at the home page (I'm at a client) but it does look sweet.  Yada,
> >yada, please post to the wiki, yada, yada.
> >
> >On Mon, 26 Jul 2004 14:23:21 -0700, Paul Ferraro <pm...@columbia.edu> wrote:
> >
> >
> >>I decided to implement my own url scheme for the following reasons:
> >>- better J2EE security control
> >>- more user friendly
> >>- more search engine friendly
> >>
> >>Here's how I did it...
> >>
> >>There are 2 parts: generating and interpreting.
> >>
> >>To generate the urls, I use custom PageLink and ExternalLink components
> >>that utilize a custom ILink implementation that generate the urls using
> >>the following pattern:
> >><path-to-page-specification>/<page-name>.htm
> >>The path-to-page-specification is taken from my application specification.
> >>
> >>e.g.
> >><page name="crisisresolution"
> >>specification-path="resolution/CrisisResolution.page"/>
> >>path-to-page-specification = resolution/
> >>page-name = crisisresolution
> >>generated url = /resolution/crisisresolution.htm
> >>
> >>Using lower case page names was done at the insistence of my site
> >>developer...
> >>
> >>To interpret the urls, I have a custom Tapestry servlet that is mapped
> >>to the url pattern *.htm.
> >>In my service() method, if the url query string contains "sp" (i.e.
> >>Tapestry.PARAMETERS_QUERY_PARAMETER_NAME), then I generate a Tapestry
> >>external link, if not I generate a page link.
> >>
> >>e.g.
> >>http://www.identitytheft911.com/resolution/crisisresolution.htm
> >>.... translates to ...
> >>http://www.identitytheft911.com/app?service=page/crisisresolution
> >>
> >>http://www.identitytheft911.com/login.htm?sp=T
> >>.... translates to ...
> >>http://www.identitytheft911.com/app?service=external/login&sp=T
> >>
> >>I then just do a simple servlet forward to the translated url.
> >>
> >>Paul
> >>
> >>
> >>
> >>Jamie Orchard-Hays wrote:
> >>
> >>
> >>
> >>>Paul, how are you doing the URLs? I see they all have normal
> >>>/path/to/myfile.htm paths.
> >>>
> >>>Jamie
> >>>
> >>>----- Original Message -----
> >>>From: "Paul Ferraro" <pm...@columbia.edu>
> >>>To: "Tapestry users" <ta...@jakarta.apache.org>
> >>>Sent: Monday, July 26, 2004 4:23 PM
> >>>Subject: Another Tapestry-driven web site launched
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>We've just completed the month long task of converting our company's
> >>>>300+ page public web site from JSPs to Tapestry.
> >>>>
> >>>>http://www.identitytheft911.com
> >>>>
> >>>>Features of interest:
> >>>>- Friendly URLs for page and external services (e.g. home.htm,
> >>>>resolution/crisisresolution.htm)
> >>>>- Virtual host-driven "localization" (3 branded sites generated from the
> >>>>same web application)
> >>>>   (see http://www.libertyidtheft.com,
> >>>>http://www.identitytheft911-usmc.com)
> >>>>- J2EE security (utilizes friendly URLs)
> >>>>   (see http://www.identitytheft911-usmc.com)
> >>>>
> >>>>Paul
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> >>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> >>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >>>
> >>>
> >>>
> >>>
> >>>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >>
> >>
> >>
> >>
> >
> >
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
~~~~~~~~~~~~~~~~
-Harish Krishnaswamy

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org