Hi,
I've got a <fieldset> written in part of my JSP page. The HTML code looks fine. However, when looping through all the elements of the form in which it's contained, it returns an undefined error and bombs out the rest of the script.
The actual JS is fine. So, too is the HTML. Or so it seems anyway.
Is there any reason for this to be the case?
This is the HTML:
------------------------------------------------------------
<fieldset name="fileslist" id="fileslist">
<legend><fmt:message key="files_dlg.msg.title" /></legend>
<c:if test="${sessionScope.SESSION_ATTACHMENTS != null}">
<ul>
<c:forEach items="${sessionScope.SESSION_ATTACHMENTS}" var="attachedFile">
<li><cut value="${attachedFile}"/></li>
</c:forEach>
</ul>
</c:if>
<c:if test="${sessionScope.SESSION_ATTACHMENTS == null}">
<h4><fmt:message key="files_dlg.msg.nofiles" /></h4>
</c:if>
</fieldset>
------------------------------------------------------------
The JS is fine. It just iterates through all the forms and then each element in the form.
hmmmm .... what's going on?
I've got a <fieldset> written in part of my JSP page. The HTML code looks fine. However, when looping through all the elements of the form in which it's contained, it returns an undefined error and bombs out the rest of the script.
The actual JS is fine. So, too is the HTML. Or so it seems anyway.
Is there any reason for this to be the case?
This is the HTML:
------------------------------------------------------------
<fieldset name="fileslist" id="fileslist">
<legend><fmt:message key="files_dlg.msg.title" /></legend>
<c:if test="${sessionScope.SESSION_ATTACHMENTS != null}">
<ul>
<c:forEach items="${sessionScope.SESSION_ATTACHMENTS}" var="attachedFile">
<li><cut value="${attachedFile}"/></li>
</c:forEach>
</ul>
</c:if>
<c:if test="${sessionScope.SESSION_ATTACHMENTS == null}">
<h4><fmt:message key="files_dlg.msg.nofiles" /></h4>
</c:if>
</fieldset>
------------------------------------------------------------
The JS is fine. It just iterates through all the forms and then each element in the form.
hmmmm .... what's going on?
Comment