You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dirk Behrendt <sc...@web.de> on 2003/07/21 18:37:36 UTC
Use ApplicationRessources.properties values in 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
RE: Use ApplicationRessources.properties values in tag
Posted by Yansheng Lin <ya...@isogis.com>.
1. <html:options> expects a Collection, I think.
2. Try to change " to ' for value='<bean:.. Key=".." />'
-----Original Message-----
From: schnoerk@web.de [mailto:schnoerk@web.de]
Sent: July 21, 2003 10:38 AM
To: struts-user@jakarta.apache.org
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Use ApplicationRessources.properties values in tag
Posted by Sandeep Takhar <sa...@yahoo.com>.
this doesn't work because of the xml specification
(cannot embed xml like this)
Have to use el or scriptlet instead.
sandeep
--- Dirk Behrendt <sc...@web.de> 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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org