Date picker in JSP

Hi,

I have a problem on selecting date picker. I have a drop down of 20 numbers. On selection of any number I need to build a grid of same rows. There is a column called date in the grid. It has date picker. I am getting the grid. But when I tried to pick a date from the date picker it gives me error. "Object doesn't support this property or method". I have the same name for the date field.

I have the following code.

Vector TransAmt = (Vector)request.getAttribute("TransAmt");

Vector CustRef = (Vector)request.getAttribute("CustRef");

<table border="1" bordercolor="Black" cellspacing="0" cellpadding="0">

<tr>

<td class="bodyTableDataCol" nowrap width="6%" height="20">Transfer Amount</td>

<td class="bodyTableDataCol" nowrap width="15%" height="20">Value Date</td>

<td class="bodyTableDataCol" nowrap width="15%" height="20">Customer Reference</td>

<td class="bodyTableDataCol" nowrap width="15%" height="20">Detail</td>

</tr>

<%

for (int j = 1; j <= intper_page; j++)

{

int i = 0;

%>

<tr>

<td class="<%=(j%2==0)?"bodyTableDataBS":"bodyTableDataAS"%>" nowrap width="12%" align="center" height="20"><%=TransAmt.elementAt(i)%></td>

<td class="<%=(j%2==0)?"bodyTableDataBS":"bodyTableDataAS"%>" nowrap width="12%" align="center" height="20">

<input type="text" name="ValueDate" size="11" maxlength="11" style="font-size: xx-small" value=<%=FrmValueDate%> onChange="upperMe(this)">

<A HREF="javascript:doNothing()" onMouseOver="showtip(this,event,'Select from Calendar')" onMouseOut="hidetip()" onClick="setDateField(document.RepetitiveInitiation.ValueDate);top.newWin = window.open('mwintl11/calendar.html','cal','dependent=yes,width=210,height=230,left=400,top=300,titlebar=yes')">

<IMG SRC="/mwintl11/images/calendar.gif" BORDER=0></A></td>

<td class="<%=(j%2==0)?"bodyTableDataBS":"bodyTableDataAS"%>" nowrap width="12%" align="center" height="20">

<input type="text" name="CustRef" size="15" maxlength="11" style="font-size: xx-small" value=<%=CustRef.elementAt(i)%>></td>

<td class="<%=(j%2==0)?"bodyTableDataBS":"bodyTableDataAS"%>" nowrap width="12%" align="center" height="20">

<input value="Edit" name="update" tabindex="25" type="button" onClick="modifyPayment()" class="formButton" style="width: 55px; color: red; height: 20px; text-align: center"></td>

</tr>

<%

}

%>

</table>

Can anybody help me on this?

Thanks.

[2794 byte] By [nsahooa] at [2007-11-27 7:44:04]
# 1
That looks like it's a question about Javascript. Javascript is not Java.
DrClapa at 2007-7-12 19:24:41 > top of Java-index,Java Essentials,Java Programming...
# 2
In fact,"JavaScript".substring(0, 4) != "Java"
Hippolytea at 2007-7-12 19:24:42 > top of Java-index,Java Essentials,Java Programming...