A more elegant solution would be: <html:submit> <fmt:message key="todo.editSaveButton bundle=${loc}/> </html:submit>
You cannot use one JSP tag as a parameter toi another JSP tag. The solution you have used is the general method for using a tag as a parameter to another (el aware) tag . If you were using struts-html rather than html-el then you would have to define a scripting variable (via bean:define) rather than a scoped attribute to achieve the same thing. Paul > -----Original Message----- > From: Jason King [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 03, 2004 9:57 PM > To: Struts Users Mailing List > Subject: html: and fmt: tags > > > I'm using jstl tags whereever I can. I want to i18n my > buttons, and so > I tried this: > <%@ taglib uri="/WEB-INF/lib/struts-html-el.tld" prefix="html" %> > <html:form action="/details"> > <!-- other fields--> > <html:submit value="${<fmt:message key="todo.editSaveButton > bundle=${loc}/>}"/> > </html:form> > > I get: > /WEB-INF/pages/details.jsp(4,69) equal symbol expected > Lose the ${} I get the same error. > No ${} escape the inner " like so: > <html:submit value="<fmt:message key=\"todo.editSaveButton\" > bundle=${loc}/>}"/> > my button has the label <fmt:message key= , not what I was > looking for. > > I have a work-around as follows: > <%@ taglib uri="/WEB-INF/lib/struts-html-el.tld" prefix="html" %> > <c:set var="saveCaption" scope="page"> > <fmt:message key="todo.editSaveButton" bundle="${loc}"/> > </c:set> > <html:form action="/details" method="post" focus="activity"> > <html:submit value="${saveCaption}"/> > </html:form> > > Somehow this seems like too much work. Is there a simpler way to get > localized values for submit and reset buttons? > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ********************************************************************** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]