Aahaah! Braces do the trick. Thanks Dave and Chris! -----Original Message----- From: Bartley, Chris P [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 8:50 AM To: 'Struts Users Mailing List' Subject: RE: <bean:message> with parametric replacement in Struts 1.0.2
Change the line in ApplicationResources.properties to instead read: note.range=We only go between {0} and {1}. That is, you should have braces ('{' and '}') around the ints instead of parens. chris > -----Original Message----- > From: Jennings, Christofer J. [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 20, 2002 9:55 AM > To: 'Struts Users Mailing List' > Subject: <bean:message> with parametric replacement in Struts 1.0.2 > > > Does parametric replacement work in Struts 1.0.2? > > This code isn't working.... > > [ApplicationResources.properties] > note.range=We only go between (0) and (1). > > [MyConstants.java] > public static final int FIRST = 10; > public static final int LAST = 12; > > [myPage.jsp] > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > <%@ page import="myApp.Constants" %> > <bean:message key="note.range" > arg0="<%= String.valueOf(Constants.FIRST) %>" > arg1="<%= String.valueOf(Constants.LAST) %>" /> > > ... the result is "We only go between (0) and (1)." > > Any clues? > > Thanks, > boz > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>