Click to See Complete Forum and Search --> : Error with div tag in jsp & javascript


bowfine123
03-21-2007, 09:08 AM
can you tell me what the error is? whenever i try to load this page I get an jsp execution error. Thanks.

<div id="Element3" class="Element3">

<%if (curDateTN.after(ZEGCStart)&&curDateTN.before(ZEGCEnd)){%>

<table width="252" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><a href="javascript: slideIn('EGC0107',365)"><img src="<%=webconnect.getContentByName("/media/images/home_page/message1a.gif").getPath()%>" width="252" height="40" alt="FREE SHIPPING" border="0"></a></td>
</tr>
<tr>
<td width="6" bgcolor="#ffffff" ></td>
<td width="247" bgcolor="#ffffff" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px"><span style="color:#387b47">on $150 or more with code: <b>WANTIT</b></span></td>
</tr>
<tr>
<td colspan="2"><a href="javascript: slideIn('EGC0107',365)"><img src="<%=webconnect.getContentByName("/media/images/home_page/message2b.gif").getPath()%>" width="252" height="20" border="0"></a></td>

</tr>
</table>

<%}else if (curDateTN.after(ZEGCEnd)){%>

<table width="252" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><a href="javascript: slideIn('FSEGC',365)"><img src="<%=webconnect.getContentByName("/media/images/home_page/message1af.gif").getPath()%>" width="252" height="40" alt="FREE SHIPPING" border="0"></a></td>
</tr>
<tr>
<td width="6" bgcolor="#ffffff" ></td>
<td width="247" bgcolor="#ffffff" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px"><span style="color:#ff3ea6"><strong>on
every order!</strong> Use code: <strong>OURTREAT</strong></span></td>
</tr>
<tr>
<td colspan="2"><a href="javascript: slideIn('FSEGC',365)"><img src="<%=webconnect.getContentByName("/media/images/home_page/message2bf.gif").getPath()%>" width="252" height="20" border="0"></a></td>

</tr>
</table>

<%}else{%>
<table width="252" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><a href="javascript: slideIn('EGC0107',365)"><img src="<%=webconnect.getContentByName("/media/images/home_page/message1a.gif").getPath()%>" width="252" height="40" alt="FREE SHIPPING" border="0"></a></td>
</tr>
<tr>
<td width="6" bgcolor="#ffffff" ></td>
<td width="247" bgcolor="#ffffff" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px"><span style="color:#387b47">on $150 or more with code: <b>WANTIT</b></span></td>
</tr>
<tr>
<td colspan="2"><a href="javascript: slideIn('EGC0107',365)"><img src="<%=webconnect.getContentByName("/media/images/home_page/message2b.gif").getPath()%>" width="252" height="20" border="0"></a></td>

</tr>
</table>
<%}%>
</div>

Kor
03-21-2007, 09:30 AM
And the error is? Is a javascript or a JSP error?

bowfine123
03-21-2007, 09:38 AM
It just says JSP execution error

Kor
03-21-2007, 10:00 AM
If so, let's move the thread to the server-side Forums