Hi:
I have some question about DynaBeanForm declarations, for example, in this code
question 1:
<struts-config.xml>
...
<form-bean
name="insertNotebookForm"
dynamic="true"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="startDate" type="java.lang.String"/>
<form-property name="subject" type="java.lang.String"/>
<form-property name="description" type="java.lang.String"/>
<form-property name="priority" type="java.lang.Integer"/>
</form-bean>
...
</struts-config>
the priority item in fact should be a select tag of item readed from a database. How
can I initialize this ?
question 2:
<struts-config.xml>
...
<form-bean
name="deleteNotebookForm"
dynamic="true"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="delete" type="java.lang.Boolean"/>
</form-bean>
...
</struts-config>
this is the jsp fragment:
<html:form action="/deleteNotebookItem">
<table>
<logic:iterate name="notebookItems" id="it">
<tr>
<td><input type="checkbox" name="delete<bean:write name="it"
property="notebookId"/>" value="true"></td>
<td><bean:write name="it" property="notebookId"/></td>
<td><bean:write name="it" property="startDate"/></td>
<td><bean:write name="it" property="subject"/></td>
<td><bean:write name="it" property="description"/></td>
</tr>
</logic:iterate>
</table>
<html:submit>
<bean:message key="button.delete"/>
</html:submit>
</html:form>
the objective is mark the checkbox of each row that I need to delete. How could I
declare de xml, the jsp checkbox tag, and the action to retrieve the selected
items to delete.
Thanks in advance for your time.
LFung