Hi Tkachenko,
Thanks and thanks a lot,it works for me.
I just added the line
Options options = new Options(new
File("userconfig.xml"));
before initializing Driver object in my servlet.Now
I can easily support multiple languages without
worrying abt Unicode.Arabic and Japenese worked for.Of
course I'm NOT hard coding.I'm supplying the app
language in a seperate XML file.
Actually I placed all my
fo,xsl,xml,userconfig.xml,.ttf etc in Tomcat/bin
folder as it was the default folder that Servlet/Jsp
is looking for reading and writing file,Is there is
anyway to configure my Web.xml so that i make my
servlet/JSP to read/write at different location.
Thanks again.
Regards
Balaji
--- Oleg Tkachenko <[EMAIL PROTECTED]> wrote: >
Balaji Loganathan wrote:
>
> > I'm trying to supply the option file
> "userconfig.xml"
> > to the servlet.In command line we give it as fop
> -c
> > userconfig.xml -xsl -xml -pdf
> > But how we can supply this servlet.?This i'm
> trying
> > for adding addtional font.
> > I tried to use the Options class but didn't
> > succeeded.Below is FopServlet snippet,.
> > -----
> > File userConfigFile = new File(userconfig.xml);
> You probably have to provide full path to the file.
> In a servlet you can parametrize it as follows:
> Options options = new Options(
> new
>
File(getServletConfig().getInitParameter("fop-config")));
> having in web.xml
> <init-param>
> <param-name>fop-config</param-name>
>
>
<param-value>d:/fop/fop-0.20.3/conf/userconfig.xml</param-value>
> </init-param>
>
> > options = new Options(userConfigFile);
> That's it. You have added options this way. See
>
http://marc.theaimsgroup.com/?l=fop-user&m=101481390006348&w=2
>
> --
> Oleg Tkachenko
> Multiconn International, Israel
>
http://briefcase.yahoo.com.au - Yahoo! Briefcase
- Save your important files online for easy access!