| Author |
bean:message passing dynamic arguments
|
Venkat Babu
Ranch Hand
Joined: Jan 12, 2007
Posts: 47
|
|
Hi, In my MessageResources.properties i have: label.inst=From {0} to {1} and in jsp <bean:message key="label.inst" arg0="2007" arg1="2009"/> This works fine. But if I pass dynamic values in the arguments I am having problems I tried <% String s1 = "2007"; String s2 = "2011": %> <bean:message key="label.inst" arg0="<%=s1%>" arg1="<%=s2%>"/> Any help will be great. Thanks.
|
 |
Venkat Babu
Ranch Hand
Joined: Jan 12, 2007
Posts: 47
|
|
Never mind. The jsp was complaining "Missing quotes for attribute value". But when I accessed the page it worked. I think there is some problem with my IDE. Thanks.
|
 |
 |
|
|
subject: bean:message passing dynamic arguments
|
|
|