Il tag <html:submit> e l’internazionalizzazione tramite <bean:message>

Si sta parlando di Struts, degli HTML Tags e dei Bean Tags. Se si vuole internazionalizzare un sito utilizzando Struts e i Tag Bean (nel fattispecie il tag bean:message unito ai file properties) si può volere caricare in lingua anche la caption di un pulsante submit. In questo caso l’istruzione:

<html:submit value="Submit caption"/>;

diventa:

<html:submit>
   <bean:message key="submit.caption"/>
</html:submit>

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>