The Artima Developer Community
Sponsored Link

Java Buzz Forum
Tapestry and Real URLs? The killer combo

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Tapestry and Real URLs? The killer combo Posted: Jul 30, 2004 9:08 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Tapestry and Real URLs? The killer combo
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement
I am a big fan of Tapestry. One of the only items left on my list of "this bugs me" was the fact that I didn't have the control over the URLs that I want. I want URLs to say something, and detest any gobble-de-gook. I think it DOES make a difference. Howard has promised that this feature will be in 3.1, and it looks like someone has done the heavy lifting for him ;) Identitytheft911.com has written code that allows them to map URLs, so if you go to: http://www.identitytheft911.com/resolution/crisisresolution.htm it gets mapped into the normal Tapestry URL: http://www.identitytheft911.com/app?service=page/crisisresolution The explanation: 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: /.htm The path-to-page-specification is taken from my application specification. e.g. 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. Great stuff!

Read: Tapestry and Real URLs? The killer combo

Topic: WebLogic 8.1 Platform named "far from revolutionary" in class action law suit against BEA Previous Topic   Next Topic Topic: Tuples and Globals in Groovy

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use