File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes struts: use .xml file instead of .properties? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "struts: use .xml file instead of .properties?" Watch "struts: use .xml file instead of .properties?" New topic

struts: use .xml file instead of .properties?

Gon Zo

Joined: Dec 07, 2006
Posts: 1
hi all,
i'm not very familiar with struts yet.
i have jsp-sites with a java applet in it. both jsp-content and applet should be internationalized. i can internationalize the applet with one .xml file containing all languages. it would be comfortable for me if the translations of the jsp site content could also be fetched from this .xml file instead of the .properties file. this way i had only one file that contains all the translations for my project(jsp and applet) and not one file for the applet and several for the jsp-content.
is there a way to manage this? or does this contradict the idea of struts?

thanks for your help!
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 62139

"Gon Zo",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

JavaRanch Sheriff

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: struts: use .xml file instead of .properties?