My iterator can find my collection when my Action class calls my jsp
directly, however when my Action class calls an html file that is set
up with IFrames (one of which is loading that same jsp), I get a
servlet error "cannot find collection".
Not usre if my issue is HTML, JSP, WebSphere or ???
Any help is very much appreciated.
HTML file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> </TITLE>
<META HTTP-EQUIV="Expires" CONTENT="Mon, 03 Mar 1997 01:00:00 GMT">
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
</HEAD>
<BODY>
<table width="700" border="1" cellspacing="0" cellpadding="0">
<tr><td>
<iframe src="myJSP.jsp" width="100%" height=300 align="left"
scrolling="yes" NORESIZE
marginwidth="10" marginheight="0" name="step1">
</iframe>
</td></tr>
<tr><td>
<iframe src="" width="100%" height=400 align="left" scrolling="yes"
NORESIZE
marginwidth="10" marginheight="0" name="step2">
</iframe>
</td></tr>
</table>
</BODY>
</HTML>
JSP file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/tlds/amarda-logic.tld" prefix="ifLogic"%>
<html>
<head>
<title> </title>
<META name="GENERATOR" content="IBM WebSphere Studio">
<SCRIPT LANGUAGE="JavaScript">
<!--
inSubmit=0;
function doSubmit() {
if( inSubmit == 0 ) {
inSubmit = 1;
return true;
}
return false;
}
// -->
</SCRIPT>
</head>
<body bgcolor="#ffffff" link="#000000" alink="#000000"
vlink="#000000">
<jsp:useBean id="viewBean"
class="myClass"
scope="request" />
<form name="form" method="post" action="myJSP2.jsp" target="step2"
onSubmit="return doSubmit();">
<input type="hidden" name="validateKey" value="1">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<logic:iterate id="id_Element" name="viewBean" property="myElement"
scope="request">
<tr>
<td colspan="1"> </td>
<td colspan="2" align="left"><input type="radio" name="inputValue"
value="<bean:write name="id_Element" property="myProperty" />"
onClick="document.form.submit()"></td>
<td colspan="1"> </td>
</tr>
</logic:iterate>
</TABLE>
</TD></TR>
</table>
</form>
</body>
</html>