cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oscar Picasso <oscgoo...@yahoo.com>
Subject RE: Getting the prefix URI form within a subsitemap
Date Thu, 08 Jan 2004 13:31:27 GMT
Thanks.

That's more or less what I was doing.

So my understanding is that there no parameter that
*directly* represente the value of the uri-prefix
inside a sitemap or a generator.


--- Nathaniel Alfred <Alfred.Nathaniel@swx.com> wrote:
> Assuming that you have only one level of
> subsitemaps:
> 
> String uri = request.getRequestURI();
> String prefix = uri.substring(0, uri.indexOf("/",
> 1));
> 
> HTH, Alfred.
> 
> >-----Original Message-----
> >From: Oscar Picasso [mailto:oscgoogle@yahoo.com]
> >Sent: Donnerstag, 8. Januar 2004 05:53
> >To: users@cocoon.apache.org
> >Subject: Getting the prefix URI form within a
> subsitemap
> >
> >
> >Hi,
> >
> >I am trying to retrieve the prefix URI from inside
> a
> >subsitemap.
> >
> >Let say I have:
> >+-- webapps
> >     +-- cocoon
> >         +-- my-app
> >
> >I would like to retrieve dynamically the string
> >"my-app" to construct some uris inside my
> generator.
> >
> >From what I have seen only the request object store
> >url/uri like strings and I have not seen
> 'prefix-uri'
> >or something like that. 
> >
> >It would be convenient. Did I miss something?
> >
> >
> >
> >__________________________________
> >Do you Yahoo!?
> >Yahoo! Hotjobs: Enter the "Signing Bonus"
> Sweepstakes
> >http://hotjobs.sweepstakes.yahoo.com/signingbonus
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> users-unsubscribe@cocoon.apache.org
> >For additional commands, e-mail:
> users-help@cocoon.apache.org
> >
> >
> 
> This message is for the named person's use only. It
> may contain
> confidential, proprietary or legally privileged
> information. No
> confidentiality or privilege is waived or lost by
> any mistransmission.
> If you receive this message in error, please notify
> the sender urgently
> and then immediately delete the message and any
> copies of it from your
> system. Please also immediately destroy any
> hardcopies of the message.
> You must not, directly or indirectly, use, disclose,
> distribute, print,
> or copy any part of this message if you are not the
> intended recipient.
> The sender's company reserves the right to monitor
> all e-mail
> communications through their networks. Any views
> expressed in this
> message are those of the individual sender, except
> where the message
> states otherwise and the sender is authorised to
> state them to be the
> views of the sender's company. 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail:
> users-help@cocoon.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message