I admit I always forget the <button> and <submit> elements, among others,
support body text.  Had I remembered that I would have come up with this
on my own :)  But thanks Ed (and Wendy after the fact ;) ), that worked
perfectly.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

On Tue, November 22, 2005 4:21 pm, Ed Griebel said:
> I use this idiom all the time to get a message label on a button:
>       <html:submit property="button" styleClass="longButton">
>               <bean:message key="button.confirm"/>
>       </html:submit>
>
> You should be able to substitute <fmt:message> above.
>
> -ed
>
>
> On 11/22/05, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>> On 11/22/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>> > Ok, today is apparently the day I get to ask a bunch of stupid
>> questions...
>> >
>> > Why doesn't this work?
>> >
>> > <html:submit styleClass="cssButton" value="<fmt:message
>> > key="labels.loginButton" />" />
>>
>> You can't use a JSP tag as attribute of another JSP tag.
>>
>> Maybe try <c:set> with the fmt in the body, then use an expression for
>> the value of <html:submit>?   Which implies the use of the Struts-EL
>> taglib, which you should be using if you're on Servlet 2.3/JSTL 1.0.
>>
>> If you haven't already, change the URI in <%@ taglib> and leave the
>> prefix as 'html'.
>>
>> --
>> Wendy
>>
>> ---------------------------------------------------------------------
>> 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]
>
>


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

Reply via email to