cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boris Althaus" <>
Subject Re: Accessing InitParameters from web.xml with xsp
Date Mon, 18 Aug 2003 11:08:51 GMT
Hello Geoff,

something like this didn't worked:

There is no output and no error.
Do I need one of the HelperClasses?

Month ago I saw a code snippet but i can't find it anymore.

----- Original Message ----- 

  From: Geoff Howard 
  Sent: Wednesday, August 13, 2003 2:11 AM
  Subject: Re: Accessing InitParameters from web.xml with xsp

  Boris Althaus wrote:
  > Hello,
  > can somebody tell me, how I can access the InitParameters in the web.xml 
  > within a xsp-page?
  > Thanks Boris


  the member variable "context" is defined for you in the finished class 
  before the xsp begins to generate.  It should be a subclass of 
  org.apache.cocoon.environment.Context - so from the javadocs you can see 
    that context.getInitParameter(String nameOfParam) should do the trick.


  To unsubscribe, e-mail:
  For additional commands, e-mail:

View raw message