Re: userconfig.xml

2002-03-13 Thread David B. Bitton

--cvVnyQ+4j833TQvp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

So, then would that be JAVA_HOME?  When I checked user.dir, i got c:\winnt\=
system32.

On Tue, Mar 12, 2002 at 08:55:22AM +0100, Beer, Christian wrote:
> > Yeah.  If I try File file =3D new File("userconfig.xml"), where=20
> > is it looking
> > relative to the class file requesting the file?
> >=20
> No, he is looking relative to the path you started java from.
>=20
> Greets,=20
>   Christian
>=20
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

--=20

David B. Bitton
[EMAIL PROTECTED]

Diversa ab illis virtute valemus.

--cvVnyQ+4j833TQvp
Content-Type: application/pgp-signature
Content-Disposition: inline

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8jnY7MNOMzNRRk50RAqc/AKCz/pMMwvbecfU0Ptx5kwpuFEACHQCfWlN+
kddSonvUQEmcYSz1lYfCrhc=
=LLT3
-END PGP SIGNATURE-

--cvVnyQ+4j833TQvp--



Re: userconfig.xml

2002-03-12 Thread David B. Bitton

Revelation:

Now I know why System.getProperties("user.dir") == "c:\windows\system32",
because that's where the Tomcat NT service must start from (not to mention
the java.exe that's in that folder also).  Hmm, what to do?  Ok, so how can
I have a not so relative path?

Conundrum:

How can I gain access to configuration info that resides in the web.xml file
for the SOAP servlet that calls my class, that in turn calls FOP?


--

David B. Bitton
[EMAIL PROTECTED]
www.codenoevil.com

Diversa ab illis virtute valemus.
- Original Message -
From: "Beer, Christian" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 2:55 AM
Subject: AW: userconfig.xml


> > Yeah.  If I try File file = new File("userconfig.xml"), where
> > is it looking
> > relative to the class file requesting the file?
> >
> No, he is looking relative to the path you started java from.
>
> Greets,
> Christian
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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




Re: userconfig.xml

2002-03-11 Thread David B. Bitton

Yeah.  If I try File file = new File("userconfig.xml"), where is it looking
relative to the class file requesting the file?

--

David B. Bitton
[EMAIL PROTECTED]
www.codenoevil.com

Diversa ab illis virtute valemus.
- Original Message -
From: "Carlos Daniel Schafer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 2:10 PM
Subject: RE: userconfig.xml


> Hi
>
> Are you locate the relative path for userconfig.xml?
>
> > -Mensaje original-
> > De: Polly Tsang [SMTP:[EMAIL PROTECTED]]
> > Enviado el: domingo, 10 de marzo de 2002 22:24
> > Para: [EMAIL PROTECTED]
> > Asunto: Re: userconfig.xml
> >
> > 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]
>


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




Re: userconfig.xml

2002-03-10 Thread Polly Tsang

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]




Re: userconfig.xml

2002-03-08 Thread David B. Bitton

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]




Re: userconfig.xml

2002-03-07 Thread Peter B. West

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]