Re: other default language

"Wouter de Vaal" <[email protected]>
Newsgroups gmane.comp.java.strutscx.user
Message-ID <[email protected]>
Oh and might I suggest you dump stacktraces in your error log statements?
That would make debugging a lot easier :-)

For example
Change
logger.error(THIS_CLASS + "TransformerException");

to

logger.error(THIS_CLASS + "TransformerException", te);



Cheers,

Wouter

----- Original Message ----- 
From: "Bernhard Woehrlin" <[email protected]>
To: "'Wouter de Vaal'" <[email protected]>
Sent: Monday, November 17, 2003 1:23 PM
Subject: AW: [Strutscx-user] other default language


Hi Wouter,

Nice! Because of some major redesigns I have to work on the StrutsCX FOP
feature the next days anyways and will consider this suggestion.

Regards,

Berny

-----Ursprüngliche Nachricht-----
Von: Wouter de Vaal [mailto:[email protected]]
Gesendet: Montag, 17. November 2003 11:05
An: [email protected]
Betreff: Re: [Strutscx-user] other default language

Hi Bernard,

I have kind of a feature request. I'm using strutscx for fop processing
(great stuff), but I want to be able to be more free in configuring fop.
Here's what I did:

I've updated StrutsCXFOPTransformer with the following line in the
makeFopTransformation:

Options options =

(Options) config.getServletContext().getAttribute(

StrutsCXConstants.FOP_USERCONFIG_PARAM);

// Customized by me, it reads the base dir for fop

String baseDir = (String)session.getAttribute("fop.basedir");

logger.debug(

THIS_CLASS

+ "Found basedir: " + baseDir);

if (baseDir != null && baseDir.length() > 0){

Configuration.put("baseDir", baseDir);

}


So now in an actionclass before it gets routed through the
StrutsCXServlet I
can change the fop processing directory to the root of my webapp, being
able
to include external files in my fo files without having to write a
hardcoded
path:

session.setAttribute("fop.basedir",getServlet().getServletContext().getR
ealP
ath("/"));

With this, I can leave out the basedir attribute in the userconfig.xml
belonging to fop, which has to be hardcoded otherwise.

Maybe this is a nice feature to add to your source?

Regards,

Wouter de Vaal


----- Original Message ----- 
From: "Bernhard Woehrlin" <[email protected]>
To: "'Stephan Reichelt'" <[email protected]>;
<[email protected]>
Sent: Monday, November 17, 2003 10:51 AM
Subject: AW: [Strutscx-user] other default language


Hi Stephan,

Please wait for the next StrutsCX release where the use of the
variables_xx.xml files will be optional. If things work out fine I do
plan to upload an update the next two days...

Regards,

Berny



-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von
Stephan Reichelt
Gesendet: Montag, 17. November 2003 10:10
An: [email protected]
Betreff: [Strutscx-user] other default language

HI strutscx-user,

we're working on a system for use in a big service center.

Since multi-language facilities are _not_ required, I'm serching for a
way to set the default values for local language.

A simple tho-language configuration in strutscx.xml looks should look
like this:

<variables>
  <de>/WEB-INF/xml/variables_de.xml</de>
  <en>/WEB-INF/xml/variables_en.xml</en>
</variables>

Unfortunately, uncommenting the <en>-line gives me an

"javax.servlet.ServletException: No value for xpath:
/properties/variables/en"

My solution would be the following ugly usage:

<variables>
<!-- <de>/WEB-INF/xml/variables_de.xml</de> -->
  <en>/WEB-INF/xml/variables_de.xml</en>
</variables>

Is there another way for doing this?


MfG,
   Stephan R.
-- 
[email protected]
Fraunhofer IVI          Tel: +49 351 4640 616



-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
Strutscx-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strutscx-user




-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=/g22lp.tmpl
_______________________________________________
Strutscx-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strutscx-user




-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.