Struts related problem
The problem is
This is a strut aspplication in this screen we have dynamic generated rows. In each of this rows we are having date field. We set the date field by choosing from a calendar . The selected is getting set in the field but while trying to save it we are getting the following javascript error- Unterminated String constant.
Can anyone help us in solving this.
Please refer the below code...
Trying to get the calendar value & set it in form bean.
<td align="left" valign="middle" class="TableLables tblBottomBorder tblLeftBorder" width="99">
<html:text name="phsSch" indexed="true" property="plannedStartDate" styleClass="inputboxbgsml"/>
<%
strTmp = "phsSch["+myPhIndx+"].plannedStartDate";
%>
<a href="#" onclick='window.dateField=document.getElementById("<%=strTmp%>"); calendar=window.open("html/calendar.html","cal","width=200,height=250,resizeable=yes,scrollbars=no")'>
<img src="<%=IPTSGeneric.strImagesRoot%>iconCalendar.gif" alt="Click here to view Calendar" width="16" height="16" border="0" name="ImgDatePicker"></a>
</td>

