You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Avinash Sridhar <av...@email.com> on 2005/01/13 18:48:16 UTC

ApplicationResources.properties file kindly help

Hi,
      Thanks for the friendly piece of advice, I did correct it and
changed the dtd from 1.0 to 1.1 and I got no errors now., ?But I have
gotten into this problem....

this is the data inside my ApplicationResources.properties file
present inside the classes directory.

/**************ApplicationResources.properties
file*******************************/

button.save=Change name
button.reset=Reset
error.name.required=To change the name, a name must be entered
prompt.name=Enter name:
welcome.title=A Simple Application

/**************ApplicationResources.properties
file*******************************/

On the index.jsp page that is being displayed.....

The values of the welcome.title, prompt.name , error.name.required ,
button.reset , button.save are not being displayed,

instead I am getting like this

   ???en_US.welcome.title???
   ???en_US.error.name.required???
........and so on.

What could be the problem, it not reading the
ApplicationResources.properties file.

Help would be greatly appreciated.

Thanks
AS
-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: ApplicationResources.properties file kindly help

Posted by Dakota Jack <da...@gmail.com>.
Did you add the values in the file without restarting the application?
 If so, then the values will not show.

Jack


On Thu, 13 Jan 2005 10:59:32 -0700, Wendy Smoak <ja...@wendysmoak.com> wrote:
> From: "Avinash Sridhar" <av...@email.com>
> > What could be the problem, it not reading the
> > ApplicationResources.properties file.
> 
> http://struts.apache.org/userGuide/configuration.html#resources_config
> 
> I have this in struts-config.xml:
> <message-resources parameter="ApplicationResources" null="false" />
> 
> The ApplicationResources.properties file lives in WEB-INF/classes/
> 
> HTH,
> --
> Wendy Smoak
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


-- 
------------------------------

"You can lead a horse to water but you cannot make it float on its back."

~Dakota Jack~

"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

-----------------------------------------------

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: ApplicationResources.properties file kindly help

Posted by Wendy Smoak <ja...@wendysmoak.com>.
From: "Avinash Sridhar" <av...@email.com>
> What could be the problem, it not reading the
> ApplicationResources.properties file.

http://struts.apache.org/userGuide/configuration.html#resources_config

I have this in struts-config.xml:
<message-resources parameter="ApplicationResources" null="false" />

The ApplicationResources.properties file lives in WEB-INF/classes/

HTH,
-- 
Wendy Smoak



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org