sorry David I forgot to show the code for the "page scope" part,
this is what I did:
<%
String slaBundle = "sla_ja_JP";
pageContext.setAttribute("slaBundle",slaBundle);
%>
<input type="text" name="name1" value="<%= pageContext.getAttribute("slaBundle")%>"/>
<BR>
<s:i18n name="%{#page.slaBundle}">
<!-- output in
struts -->
<s:text name="sla.text.test_prov"/>
</s:i18n>
<BR>
<!-- this works -->
<s:i18n name="sla_ja_JP">
<s:text name="sla.text.test_prov"/>
</s:i18n>
in the above code, when I set i18n name="sla_ja_JP" then it works,
but when I do i18n name="%{#page.slaBundle}" then I just get back
"sla.text.test_prov" in the UI (I dont get the japanese chars), do I have
the right syntax there?
I verified that the variable is actually in the page context by doing
a pageContext.getAttribute("slaBundle") and it displays the value
properly.
also, how do I retrieve the value of slaBundle within a struts
textfield, I tried the following tags but it did not work:
<s:textfield label="text1" name="text1" value="%{#page.slaBundle}"/>
<s:textfield label="text2" name="text2" value="#page.slaBundle"/>
Thanks for your help.