Use ApplicationRessources.properties values in html:options value=.... tag

2003-07-21 Thread Dirk Behrendt
Hello!
 
I want to use  some values from the properties file in my JSP page.
 
ApplicationRessources.properties file:
language.german = Deutsch
language.english = Englisch
 
 
Normally such values are used within a JSP page like this: bean:message
key= language.german / 
 
But how I can use this value within a html:options value= tag?
 
html:options value=bean:message key= language.german /  does not
work.
 
 
Dirk


RE: Use ApplicationRessources.properties values in html:options value=.... tag

2003-07-21 Thread Yansheng Lin
1. html:options expects a Collection, I think.

2. Try to change  to ' for value='bean:.. Key=.. /'



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: July 21, 2003 10:38 AM
To: [EMAIL PROTECTED]
Subject: Use ApplicationRessources.properties values in html:options
value= tag


Hello!
 
I want to use  some values from the properties file in my JSP page.
 
ApplicationRessources.properties file:
language.german = Deutsch
language.english = Englisch
 
 
Normally such values are used within a JSP page like this: bean:message
key= language.german / 
 
But how I can use this value within a html:options value= tag?
 
html:options value=bean:message key= language.german /  does not
work.
 
 
Dirk


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



Re: Use ApplicationRessources.properties values in html:options value=.... tag

2003-07-21 Thread Sandeep Takhar
this doesn't work because of the xml specification
(cannot embed xml like this)

Have to use el or scriptlet instead.

sandeep
--- Dirk Behrendt [EMAIL PROTECTED] wrote:
 Hello!
  
 I want to use  some values from the properties file
 in my JSP page.
  
 ApplicationRessources.properties file:
 language.german = Deutsch
 language.english = Englisch
  
  
 Normally such values are used within a JSP page like
 this: bean:message
 key= language.german / 
  
 But how I can use this value within a html:options
 value= tag?
  
 html:options value=bean:message key=
 language.german /  does not
 work.
  
  
 Dirk
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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