T
Thomas P. Fuller
Hi, any help with the following is much appreciated:
I'd like to add the value of a bean variable into arg0 of the
bean:message tag in the following way:
The following works:
<bean:write name="loginFormBean" property="userName"/>
results in, for example,
tfuller
and
<bean:message key="homepage.welcome.text"/>
results in, for example:
Welcome back {0}, we're happy to see you again!
Now I need to figure out how I can do the equivalent of (this does NOT
work):
<bean:message key="homepage.welcome.text"
arg0="loginFormBean.userName"/>
which should give me:
Welcome back tfuller, we're happy to see you again!
I figure this should be pretty easy, but I'm having a bit of trouble
with it; I'm new to Struts, so this is probably the reason why.
Thanks,
Thomas
I'd like to add the value of a bean variable into arg0 of the
bean:message tag in the following way:
The following works:
<bean:write name="loginFormBean" property="userName"/>
results in, for example,
tfuller
and
<bean:message key="homepage.welcome.text"/>
results in, for example:
Welcome back {0}, we're happy to see you again!
Now I need to figure out how I can do the equivalent of (this does NOT
work):
<bean:message key="homepage.welcome.text"
arg0="loginFormBean.userName"/>
which should give me:
Welcome back tfuller, we're happy to see you again!
I figure this should be pretty easy, but I'm having a bit of trouble
with it; I'm new to Struts, so this is probably the reason why.
Thanks,
Thomas