Actually, I didn't understand why you gave <s:actionmessage .../> a key 
attribute. Meanwhile, you should change <constant 
name="struts.custom.i18n.resources"
value="ApplicationResources.properties"/> to <constant 
name="struts.custom.i18n.resources"
value="ApplicationResources"/>

Crazyreal

-----邮件原件-----
发件人: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
发送时间: 2007年7月3日 18:01
收件人: Struts Users Mailing List
主题: Struts 2 displaying message from resource bundle

HI

Using Struts 2   I am trying to  display  message from a resource bundle

in the struts.xml

<constant name="struts.custom.i18n.resources"
value="ApplicationResources.properties"/>

jsp
------
<s:actionmessage key="test.error" />

I have copied the ApplicationResources.properties in the classpath

but it is not reading the message from the property file, it displays the
key.

Please let me know if iam doing something wrong...


This e-mail is intended to be confidential to the recipient. If you receive a 
copy in error, please inform the sender and then delete this message. Virgin 
Money do not accept responsibility for changes made to any e-mail after 
sending. Virgin Money have swept, and believe this e-mail to be free of viruses 
and profanity but make no guarantees to this effect.

Virgin Money Personal Financial Service Ltd is authorised and regulated by the 
Financial Services Authority. Registered in England no. 3072766. Entered on the 
Financial Services Authority's Register http://www.fsa.gov.uk/register/. 
Register Number 179271. The Virgin Deposit Account is a personal bank account 
with The Royal Bank of Scotland.

Virgin Money Unit Trust Managers Ltd is authorised and regulated by the 
Financial Services Authority. Registered in England no. 3000482. Entered on the 
Financial Services Authority's Register. Register Number 171748.

Virgin Money Ltd. Registered in England no. 4232392. Introducer appointed 
representative only of Virgin Money Personal Financial Service Ltd.

Virgin Money Management Services Ltd. Registered in England no.3072772.

Virgin Money Group Ltd. Registered in England no.3087587.

All the above companies have their Registered office at Discovery House, 
Whiting Road, Norwich NR4 6EJ. 

All products are open only to residents of the United Kingdom.

This message has been checked for viruses and spam by the Virgin Money email 
scanning system powered by Messagelabs.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to