Please find attached patches to environment/Context.java,
CommandlineContext.java, HttpContext,java.

Theses allow access to parameters defined in the web.xml file...

  <description>Cocoon2 Demo</description>
  
  <context-param>
    <param-name>db1</param-name>
 
<param-value>jdbc:JTurbo://xxx.experian.co.uk/yyy/sql70=true</param-value>
    <description>Primary Database</description>
  </context-param>
  <context-param>
    <param-name>db2</param-name>
    <param-value>jdbc:odbc:MS Access
Database;DBQ=d:/temp/postal.mdb</param-value>
    <description>Secondary Database</description>
  </context-param>

  <servlet>
    <servlet-name>Cocoon2</servlet-name>

I've also noticed a lot of people asking questions along the lines of "how
can I get access to XXX from my xsp..." so I've attached a patch for the
xsp.xsl file - all it adds are comments which should show up in the java.
It adds comments to the effect of what 'built-in' (ie derived from
parent(s)) variables are defined.  I *know* this adds nothing to your
knowledge if you know it, but a newbie may actually look in the generated
java code(?).  If there are other variables I didn't add (context,
parameters, request, response) and people think it's useful, please
extend...

John.



=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

Context.diff

CommandlineContext.diff

HttpContext.diff

xsp.diff

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to