Re: finding the URL of the current Cocoon application?

2004-09-06 Thread Marc Portier
Ralph Goers wrote: At 9/6/2004 02:55 AM, you wrote: we've used this trick a number of times: add an action with: public Map act( Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception { Request request = ObjectModelH

Re: finding the URL of the current Cocoon application?

2004-09-06 Thread Ralph Goers
At 9/6/2004 02:55 AM, you wrote: we've used this trick a number of times: add an action with: public Map act( Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception { Request request = ObjectModelHelper.getRequest(obj

RE: finding the URL of the current Cocoon application?

2004-09-06 Thread Lars Huttar
Thanks! Very helpful. Lars > -Original Message- > From: Marc Portier [mailto:[EMAIL PROTECTED] > Sent: Monday, September 06, 2004 4:56 AM > To: [EMAIL PROTECTED] > Subject: Re: finding the URL of the current Cocoon application? > > > we've used this trick a

Re: finding the URL of the current Cocoon application?

2004-09-06 Thread Marc Portier
we've used this trick a number of times: add an action with: public Map act( Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception { Request request = ObjectModelHelper.getRequest(objectModel); if (request.getAttr

RE: finding the URL of the current Cocoon application?

2004-09-04 Thread Ralph Goers
At 9/4/2004 09:08 AM, you wrote: Anyway, Ralph, I would be happy to hear from you how to get the http servlet request from Java. Especially if it's different from {request:servletPath} and {request:requestURI}, both of which return the outer URI. Thanks, Lars If real path is what I think it is it

RE: finding the URL of the current Cocoon application?

2004-09-04 Thread Lars Huttar
I wrote: > > Ralph Goers wrote: > > > > At 9/3/2004 04:17 PM, you wrote: > > > > > > >So... does anyone have a foolproof way to find the URI of > > the application > > >(mount/gem)? > > > > I should think that the http servlet request would always > > have the valid > > request uri. I know

RE: finding the URL of the current Cocoon application?

2004-09-04 Thread Lars Huttar
Ralph Goers wrote: > > At 9/3/2004 04:17 PM, you wrote: > > > >So... does anyone have a foolproof way to find the URI of > the application > >(mount/gem)? > > I should think that the http servlet request would always > have the valid > request uri. I know how to get this from Java (its in t

Re: finding the URL of the current Cocoon application?

2004-09-03 Thread Ralph Goers
At 9/3/2004 04:17 PM, you wrote: So... does anyone have a foolproof way to find the URI of the application (mount/gem)? Thanks, Lars I should think that the http servlet request would always have the valid request uri. I know how to get this from Java (its in the object model) but I'm not sure