Yes, Thank you so much.
At 10:47 AM 2002/3/8 -0500, you wrote:
>In the context of a servlet, where would I place userconfig.xml file
>relative to the webapps dir, and what path would I use to retrieve the file.
>According to java.io API JavaDoc file, a relative path is relative to the
>user's home dir. Would I actually have to say:
>
>File file = new File("c:\tomcat4\webapps\soap\WEB-INF\userconfig.xml")
>
>or something like:
>
>File file = new File("userconfig.xml")
>
>Any ideas? I need the config file because it has font info in it.
>
>--
>
>David B. Bitton
>[EMAIL PROTECTED]
>www.codenoevil.com
>
>Diversa ab illis virtute valemus.
>----- Original Message -----
>From: "Peter B. West" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, March 08, 2002 12:49 AM
>Subject: Re: userconfig.xml
>
>
> > Polly,
> >
> > You are not the first, nor will you be the last, to be thrown by this.
> > All of the work of the Options object is done in the constructor. You
> > don't have to do anything more with it. It sets up a lot of static
> > data, accessible by static methods, in a Configuration class. Have a
> > look at org.apache.fop.configuration.Configuration for the access
> > methods. Look at the example config.xml and userconfig.xml in
> > xml-fop/conf to see what sort of data is stored in there.
> >
> > Hmm.... This seems to crop up a bit. Maybe something like a static
> > Options.configure() would be less confusing for an essentially static
> > operation.
> >
> > Peter
> >
> > Polly Tsang wrote:
> >
> > > Hi all,
> > >
> > > How can I use userconfig in embedding servlet programs?
> > >
> > > I don't understand the following 2 statements that included in
> > > xml.apache.org web page. Could someone give a brief sample code about
> > > this?
> > >
> > > userConfigFile = new File(userConfig);
> > > options = new Options(userConfigFile);
> > >
> > > Thanks you so much!!!
> > >
> > > Regards,
> > > Polly
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, email: [EMAIL PROTECTED]
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]