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>

[1193 byte] By [Ottrana] at [2007-10-2 20:07:43]
# 1
Have you got String strTmp = null; in the jsp?Please post the complete resulted html because it is a must for debugging a Javascript error.Please change the people name and sensitive data to something.
evilknighthka at 2007-7-13 22:48:05 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
HaiiGet the view source and paste it into your local machine and check where the javascript error is happening..regardsShanu
mshanua at 2007-7-13 22:48:05 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...