You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Christophe <fo...@blowfish.com> on 2005/08/03 23:47:57 UTC
Tapestry for a "virtual" web site
Hi,
I'm looking at using Tapestry for a web site that has particular
requirements for how the URLs are structured. It's a product catalog,
and the requirement is that the URLs are of the form:
/catalog/category/subcategory/productname
(possibly more than one subcategory) For example:
/catalog/cookware/pots/some_big_pot
Intermediate URLs are also available:
/catalog/cookware/pots/
These URLs don't correspond to actual directories and files. Instead,
they're generated on the fly from page templates querying the database.
Is this possible with Tapestry? Even a general pointer would be most
helpful. Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: Tapestry for a "virtual" web site
Posted by Patrick Casey <pa...@adelphia.net>.
Never mind, I see what he's trying to do and you're right; he's not
worries about parameter encoding, he's looking at the locator side of the
URL.
--- Pat
> -----Original Message-----
> From: Patrick Casey [mailto:patcasey@adelphia.net]
> Sent: Wednesday, August 03, 2005 3:19 PM
> To: 'Tapestry users'
> Subject: RE: Tapestry for a "virtual" web site
>
>
> How would it not work? You just write a handler like:
>
> public void activateExternalPage(Object[] parameters, IRequestCycle cycle)
> {
> String catalog = (String) parameters[0];
> String category = (String) parameters[1];
> String subcategory = (String) parameters[2];
> String productname = (String) parameters[3];
> ... do some stuff?
> }
>
> Or am I missing some aspect of the problem?
>
> --- Pat
>
> > -----Original Message-----
> > From: Jamie Orchard-Hays [mailto:jamie@dang.com]
> > Sent: Wednesday, August 03, 2005 3:14 PM
> > To: Tapestry users
> > Subject: Re: Tapestry for a "virtual" web site
> >
> > IExternal? Do you mean IExternalPage? That doesn't do what your
> > suggesting, Pat.
> >
> > What I'd do us use FURLs* and then for the virtual directories, use a
> > URL rewrite of some sort. I don't know how flexible and powerful the
> > options are for FURLs in 4.0--maybe that would get you all the way
> > there.
> >
> > Jamie
> >
> > On Aug 3, 2005, at 5:53 PM, Patrick Casey wrote:
> >
> > >
> > > Have you looked at IExternal? It should let your pages respond to
> > > arbitrarily structured URLs.
> > >
> > > --- Pat
> > >
> > >
> > >> -----Original Message-----
> > >> From: Christophe [mailto:fox@blowfish.com]
> > >> Sent: Wednesday, August 03, 2005 2:48 PM
> > >> To: Tapestry users
> > >> Subject: Tapestry for a "virtual" web site
> > >>
> > >> Hi,
> > >>
> > >> I'm looking at using Tapestry for a web site that has particular
> > >> requirements for how the URLs are structured. It's a product
> > >> catalog,
> > >> and the requirement is that the URLs are of the form:
> > >>
> > >> /catalog/category/subcategory/productname
> > >>
> > >> (possibly more than one subcategory) For example:
> > >>
> > >> /catalog/cookware/pots/some_big_pot
> > >>
> > >> Intermediate URLs are also available:
> > >>
> > >> /catalog/cookware/pots/
> > >>
> > >> These URLs don't correspond to actual directories and files.
> > >> Instead,
> > >> they're generated on the fly from page templates querying the
> > >> database.
> > >>
> > >> Is this possible with Tapestry? Even a general pointer would be most
> > >> helpful. Thanks!
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> 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: Tapestry for a "virtual" web site
Posted by Patrick Casey <pa...@adelphia.net>.
How would it not work? You just write a handler like:
public void activateExternalPage(Object[] parameters, IRequestCycle cycle) {
String catalog = (String) parameters[0];
String category = (String) parameters[1];
String subcategory = (String) parameters[2];
String productname = (String) parameters[3];
... do some stuff?
}
Or am I missing some aspect of the problem?
--- Pat
> -----Original Message-----
> From: Jamie Orchard-Hays [mailto:jamie@dang.com]
> Sent: Wednesday, August 03, 2005 3:14 PM
> To: Tapestry users
> Subject: Re: Tapestry for a "virtual" web site
>
> IExternal? Do you mean IExternalPage? That doesn't do what your
> suggesting, Pat.
>
> What I'd do us use FURLs* and then for the virtual directories, use a
> URL rewrite of some sort. I don't know how flexible and powerful the
> options are for FURLs in 4.0--maybe that would get you all the way
> there.
>
> Jamie
>
> On Aug 3, 2005, at 5:53 PM, Patrick Casey wrote:
>
> >
> > Have you looked at IExternal? It should let your pages respond to
> > arbitrarily structured URLs.
> >
> > --- Pat
> >
> >
> >> -----Original Message-----
> >> From: Christophe [mailto:fox@blowfish.com]
> >> Sent: Wednesday, August 03, 2005 2:48 PM
> >> To: Tapestry users
> >> Subject: Tapestry for a "virtual" web site
> >>
> >> Hi,
> >>
> >> I'm looking at using Tapestry for a web site that has particular
> >> requirements for how the URLs are structured. It's a product
> >> catalog,
> >> and the requirement is that the URLs are of the form:
> >>
> >> /catalog/category/subcategory/productname
> >>
> >> (possibly more than one subcategory) For example:
> >>
> >> /catalog/cookware/pots/some_big_pot
> >>
> >> Intermediate URLs are also available:
> >>
> >> /catalog/cookware/pots/
> >>
> >> These URLs don't correspond to actual directories and files.
> >> Instead,
> >> they're generated on the fly from page templates querying the
> >> database.
> >>
> >> Is this possible with Tapestry? Even a general pointer would be most
> >> helpful. Thanks!
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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: Tapestry for a "virtual" web site
Posted by Jamie Orchard-Hays <ja...@dang.com>.
IExternal? Do you mean IExternalPage? That doesn't do what your
suggesting, Pat.
What I'd do us use FURLs* and then for the virtual directories, use a
URL rewrite of some sort. I don't know how flexible and powerful the
options are for FURLs in 4.0--maybe that would get you all the way
there.
Jamie
On Aug 3, 2005, at 5:53 PM, Patrick Casey wrote:
>
> Have you looked at IExternal? It should let your pages respond to
> arbitrarily structured URLs.
>
> --- Pat
>
>
>> -----Original Message-----
>> From: Christophe [mailto:fox@blowfish.com]
>> Sent: Wednesday, August 03, 2005 2:48 PM
>> To: Tapestry users
>> Subject: Tapestry for a "virtual" web site
>>
>> Hi,
>>
>> I'm looking at using Tapestry for a web site that has particular
>> requirements for how the URLs are structured. It's a product
>> catalog,
>> and the requirement is that the URLs are of the form:
>>
>> /catalog/category/subcategory/productname
>>
>> (possibly more than one subcategory) For example:
>>
>> /catalog/cookware/pots/some_big_pot
>>
>> Intermediate URLs are also available:
>>
>> /catalog/cookware/pots/
>>
>> These URLs don't correspond to actual directories and files.
>> Instead,
>> they're generated on the fly from page templates querying the
>> database.
>>
>> Is this possible with Tapestry? Even a general pointer would be most
>> helpful. Thanks!
>>
>>
>> ---------------------------------------------------------------------
>> 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: Tapestry for a "virtual" web site
Posted by Patrick Casey <pa...@adelphia.net>.
Have you looked at IExternal? It should let your pages respond to
arbitrarily structured URLs.
--- Pat
> -----Original Message-----
> From: Christophe [mailto:fox@blowfish.com]
> Sent: Wednesday, August 03, 2005 2:48 PM
> To: Tapestry users
> Subject: Tapestry for a "virtual" web site
>
> Hi,
>
> I'm looking at using Tapestry for a web site that has particular
> requirements for how the URLs are structured. It's a product catalog,
> and the requirement is that the URLs are of the form:
>
> /catalog/category/subcategory/productname
>
> (possibly more than one subcategory) For example:
>
> /catalog/cookware/pots/some_big_pot
>
> Intermediate URLs are also available:
>
> /catalog/cookware/pots/
>
> These URLs don't correspond to actual directories and files. Instead,
> they're generated on the fly from page templates querying the database.
>
> Is this possible with Tapestry? Even a general pointer would be most
> helpful. Thanks!
>
>
> ---------------------------------------------------------------------
> 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