Hi,

I started experimenting with WW some days ago trying to convert a simple application in which I originaly used Struts. Now I got to the point when I would like to deploy it but found there was one open question left.

How does the WW access resource bundles for i18n-ized texts?

I looked at the i18n example but I haven't found how does the app. know it should use the Shop.properties to retrieve data for particular language. In Struts there is one resource bundle and it is referenced as one of parameters of the dispatch servlet in the web.xml. I havent found any such information in the documentation supplied with WW (1.3.0)

Finaly searched WW sources and I found something like this in the TextTag.java file:
-------
Access a i18n-ized message. The message must be in a resource bundle
with the same name as the action that it is associated with. In practice
this means that you should create a properties file in the same package
as your Java class with the same name as your class, but with .properties extension.
-------


Does it mean I have to have separate resource bundles for each action class? What about the inheritance?
What about the JSP? Does it use the resource bundle belonging to the action for which the page serves as the view?
If so, what if a page servers as a view for more actions?
Is there a way to have just one i18n-ized resource bundle for the whole application?
Is this the reason why all actions in the i18n example inherit from the webwork.action.ActionSupport.Shop class?


Can anybody explain me how this works? It would be also good to mention that in the WW documentation.

Thanks

Mira



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to