Can the property webwork.custom.properties=ApplicationResources
be set to load language strings.
Is there any such property for loading an external file?
i.e. can whats the simplest way to use an existing struts resource file?
(without making a file for each action)
Thanks,
Matthew Payne
Why not define a common subclass for all your actions, and have one
resource file for it? If there is no resource file for a particular
action, then webwork will look up the object heirarchy until it finds a
resource.
Matthew Payne wrote:
Can the property
Which version of WebWork are you using?
-Original Message-
From: Matthew Payne [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 1:37 PM
To: [EMAIL PROTECTED]
Subject: [OS-webwork] i18n question
Can the property webwork.custom.properties=ApplicationResources
be set
WW2 beta2 (November release)
Matt
On Tue, 2004-01-13 at 13:49, Jason Carreira wrote:
Which version of WebWork are you using?
-Original Message-
From: Matthew Payne [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 1:37 PM
To: [EMAIL PROTECTED]
Subject: [OS-webwork
I did that. It works, in that it will produce the strings from that
file.
I created a simple macro.
#macro (msg $property)
$action.getText($property)
#end
Instead of $msg.text --- (from velocity tools struts app), I am using
just #msg
However, what if someone wants to setup
here:
http://wiki.opensymphony.com/space/Webwork2+FAQ
For how to add a global resource bundle
Jason
-Original Message-
From: Matthew Payne [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 2:25 PM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] i18n question
I did
Thanks for your help guys. I think I have in now.
ActionName_{locale}.properties should be picked up automatically if my
action extends ActionSupport.
This was tough to find on the wiki. Could a blub about this be added to
the converting from struts page?
Also,just to confirm,
, January 13, 2004 2:55 PM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] i18n question
Thanks for your help guys. I think I have in now.
ActionName_{locale}.properties should be picked up
automatically if my action extends ActionSupport.
This was tough to find on the wiki. Could a blub
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] i18n question
Thanks for your help guys. I think I have in now.
ActionName_{locale}.properties should be picked up
automatically if my action extends ActionSupport.
This was tough to find on the wiki. Could a blub about
seems like what you need is a global resource bundle, see:
http://wiki.opensymphony.com/space/Webwork2+FAQ
Matthew Payne wrote:
Can the property webwork.custom.properties=ApplicationResources
be set to load language strings.
Is there any such property for loading an external file?
i.e.
10 matches
Mail list logo