cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <giac...@apache.org>
Subject RE: [c2] ServletContext/ServletConfig
Date Tue, 12 Jun 2001 17:33:50 GMT
On Tue, 12 Jun 2001, Morrison, John wrote:

> I've a problem, if I do...
>
> StringBuffer temp = new StringBuffer("Init names: ");
> java.util.Enumeration e = conf.getInitParameterNames();
> if(e.hasMoreElements()) {
> 	while(e.hasMoreElements()) {
> 		temp.append((String) e.nextElement())
>             .append(",");
> 	}
> }
> log.debug(temp.toString());
>
> in CocoonServlet I see the init parameters in the log.  If however I do...
>
> StringBuffer temp = new StringBuffer("Init names: ");
> java.util.Enumeration e = conf.getServletContext().getInitParameterNames();
> if(e.hasMoreElements()) {
> 	while(e.hasMoreElements()) {
> 		temp.append((String) e.nextElement())
>             .append(",");
> 	}
> }
> log.debug(temp.toString());
>
> I get no names in the log.  I'm using TC4.0-b5 on windoze NT4.  Does anybody
> have any ideas (apart from use a decent OS ;) ?

In what class do you do the second snipped?

Giacomo

>
> J.
>
> > -----Original Message-----
> > From: giacomo [mailto:giacomo@apache.org]
> > Sent: 12 June 2001 4:34 pm
> > To: 'cocoon-dev@xml.apache.org'
> > Subject: RE: [c2] ServletContext/ServletConfig
> >
> >
> > On Tue, 12 Jun 2001, Morrison, John wrote:
> >
> > > Would anybody have any objections if I submit a patch to
> > the Context to
> > > allow me to do getInitParameter(name)?  If people mind due
> > to Cocoons own
> > > initparameters, I could filter those out...?
> >
> > No objections from my side.
> >
> > Giacomo
> >
> > >
> > > > -----Original Message-----
> > > > From: Morrison, John [mailto:John.Morrison@uk.experian.com]
> > > > Sent: 12 June 2001 9:18 am
> > > > To: 'cocoon-dev@xml.apache.org'
> > > > Subject: [c2] ServletContext/ServletConfig
> > > >
> > > >
> > > > Hi all,
> > > >
> > > > Is it possible to get to the ServletContext or the
> > > > ServletConfig from within
> > > > an xsp page?  If so, could somebody post a code snippit?
> > > >
> > > > Thanks for any help,
> > > >
> > > > J.
> > > >
>
>
> =======================================================================
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
>


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


Mime
View raw message