jeudi 21 mai 2015

loading messages from resource bundle in struts2

I want to load resource bundle (I have two: one for selected language and another default) dynamically in jsp and read the content in jsp. I have tried following way but its just hardcoded.

<s:i18n name="resourcebundle_fr">
                        <s:text name="fr_message1" />
</s:i18n>

where what I want is instead of resourcebundle_fr, I want it to be dynamic. Also, same page has included another jsp page which should also pick the messages from the selected language specific resource bundle.

Aucun commentaire:

Enregistrer un commentaire