cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victor Batista" <vbati...@present-technologies.com>
Subject RE: Detect forward URI
Date Tue, 16 Nov 2004 19:17:43 GMT
Hi!
  I got it working with: 
     request.getSitemapURI()

  Thanks,
    Victor Batista

________________________________

From: Jaque Sara [mailto:jsara@snapbridge.com] 
Sent: terça-feira, 16 de Novembro de 2004 8:49
To: users@cocoon.apache.org
Subject: RE: Detect forward URI



I’m not sure what you meant by “getting it from the Environment”, but from
the Request object, you can access it this way…

 

        org.apache.cocoon.environment.Request request =
ObjectModelHelper.getRequest(objectModel);

        String lastUri = (String) request.get("lastUri");

 

Hope this is helpful.

- Jaque

 

________________________________

From: Victor Batista [mailto:vbatista@present-technologies.com] 
Sent: Tuesday, November 16, 2004 3:58 AM
To: users@cocoon.apache.org
Subject: Detect forward URI

 

Hi!

   I have a Cocoon application which does a lot of internal forwards. How
can I know, in each action, which is the current URI where I am in?  The
request Object has the Environment variable, which has the field "lastURI",
which is filled with the value I need. How can I get it (from the
Environment or anywhere else)?

   Any help would really be appreciated.

   Thanks in advance,

       Victor Batista 


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004





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


Mime
View raw message