struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Anderson" <stuts_anderson...@hotmail.com>
Subject RE: <html:submit>
Date Wed, 17 Dec 2003 20:09:08 GMT
you can't specifiy a tag as the value of an attribute in another tag.  There 
are a few different ways you could solve this problem.  Here's one using 
jstl and struts-el:
<c:set var="messy">
    <bean:message key='csc.button.submit'/>
</c:set>
<html-el:submit property="physicianSubmit" value="${messy}"/>

>From: Clark Kent <kryptoniteheman@yahoo.com>
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: usergroup <struts-user@jakarta.apache.org>
>Subject: <html:submit>
>Date: Wed, 17 Dec 2003 11:53:25 -0800 (PST)
>
>I am trying to use <bean:message> for internationalization within the 
>html:submit button like this :
>
><html:submit property="physicianSubmit" value="<bean:message 
>key='csc.button.submit'/>"/>
>
>There is a key-value pair in the resource bundle.
>
>But it seems to display the following error : Attribute csc.button.submit 
>has no value
>
>How do I fix this error?
>
>Thanks,
>
>CK
>
>
>
>
>
>---------------------------------
>Do you Yahoo!?
>New Yahoo! Photos - easier uploading and sharing

_________________________________________________________________
Check your PC for viruses with the FREE McAfee online computer scan.  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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


Mime
View raw message