Hi all,
I wanted to know that if I can use the html:text within the Logic:iterate tag?
I have a result returned to the user. User has to be given an option to add a value in a text field in the form.
Do i have to create another form action for the single text??? If I use like the below, it gives an exception inspite of the getter setter in the form.
javax.servlet.ServletException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
code:
=---------
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<html:html>
<title>
Test Application</title>
<body>
<html:form action="/CalendarAction" styleId="inputForm">
This is a test application.
<html:submit/>
</html:form>
<logic

resent name="inputForm" property="results">
<bean:size id="size" name="inputForm" property="results"/>
<logic:equal name="size" value="0">
<center><font color="red"><b>No Results Found</b></font></center>
</logic:equal>
<logic:greaterThan name="size" value="0">
<table>
<tr>
<td width="15%" >TERRITORY DESCRIPTION</td>
<td width="15%" class="yellowheading">REGION ID </td>
<td width="15%" class="yellowheading">TERRITORY ID</td>
<td width="15%" >Calendar</td>
</tr>
<logic:iterate id="test" name="inputForm" property="results" >
<tr>
<td><bean:write name="test" property="territoryDescription"/></td>
<td><bean:write name="test" property="regionid"/></td>
<td><bean:write name="test" property="territoryID"/></td>
<td><html:text property="datesubmittedfrom"/></td>
</tr>
</logic:iterate>
</table>
</logic:greaterThan>
</logic

resent>
</body>
</html:html>
---------------------
Is it supposed to be like?
<html:html>
<html:form action="\a">
Do something
</html:form>
<logic:iterate>
</logic:iterate>
<html:form action="\b">
<html:text>
<html:submit>
</html:form>
----------------------
Thanks in advance..
Regards,
Roshani