Users Mailing List user@struts.apache.org
Sent: Thursday, June 25, 2009 6:02 PM
Subject: Re: Dynamic value supplied s:text name in struts 2
Correction on this question.
With Struts1 the following would work:
JSP:
%
String productType = [get the productType from the form]
String productTypeI18nKey
With Struts1 the following would work:
JSP:
%
String productType = [get the productType from the form]
String productTypeI18nKey = product.type.list. + productType;
%
html:text property=%=productTypeI18nKey%/
With the Struts2, how would I do the same. I've tried:
JSP:
%
String
Correction on this question.
With Struts1 the following would work:
JSP:
%
String productType = [get the productType from the form]
String productTypeI18nKey = product.type.list. + productType;
%
bean:message key=%=productTypeI18nKey%/
With the Struts2, how would I do the same. I've tried:
3 matches
Mail list logo