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:[EMAIL PROTECTED]]
> > Sent: 12 June 2001 4:34 pm
> > To: '[EMAIL PROTECTED]'
> > 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:[EMAIL PROTECTED]]
> > > > Sent: 12 June 2001 9:18 am
> > > > To: '[EMAIL PROTECTED]'
> > > > 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: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]