Nesting the tag works for submit.  I was hoping this would work for
html:text as well but it doesn't unfortunately.  This is a sample of
what it looks like for i18n submit:

 

                        <html:submit>

                        <bean:message key="ui.login.submit" />

                        </html:submit>

 

Regards...djsuarez

 

Date: Tue, 05 Oct 2004 10:53:56 +0200

From: Zoltan Vekony <[EMAIL PROTECTED]>

Subject: Internationalize Submit Button

Content-Type: text/plain; charset="iso-8859-1"

 

Hi,

 

I would like build a Struts-form like this:

 

...

<html:form action="/search">

 

<table width="100%">

 

<tr><td>

<bean:message key="search.for" /><html:text property="text"
titleKey="search.for.title" />

</td></tr>

 

<tr><td>

<html:submit value="Search" />

</td></tr>

</table>

 

</html:form>

 

I have the following entries in properties file:

search.for=Search for:

search.for.title=Search for book title

 

Question:

Is is possible to setup the submit button like: valueKey="search.submit"
(analogous title/titleKey) to have i18n facility?

 

Thanks

Zoltan

 

 

Reply via email to