Hi,
while iam trying to run following code . I am getting an error.
<html:select property="endYear"name ="customerForm" >
<% Calendar = Calendar.getInstance();
int NUM_YEARS1 = 3; // show 3 years out
int year1 = calendar1.get(java.util.Calendar.YEAR);
for (int i = 0; i < NUM_YEARS1; i++) {
System.out.println("Year = "+year1); %>
<html
ption value="<%=year1%>"><%=year1%></html
ption>
<% year1++;
} %>
error:
cannot find symbol
symbol : method setValue(int)
location: class org.apache.struts.taglib.html.OptionTag
_jspx_th_html_option_54.setValue(year1);
^
1 error
Thanks