Struts empty ActionForm

796 views Asked by At

I'm a Struts newbie, and using Struts 1.2.7. My goals is to be able to read the form in my action class that helped built my JSP. I am able to use the form in my JSP/Struts to create a data table and I can clear the data from the table, all through the action class execute method. However, what I can not do is read/view the same form that created the JSP in my action class execute method. What I get is an empty ActionForm passed to my action class execute method. My first guess is I have an JSP/HTML problem. I assume this is a very basic question and any help would be welcomed.

<html:form action="/PolicyServiceTaskAssignment" >
.....
            <!-- Update and Clear submit table -->
            <table align="center" style="width: 450px;">
                <tr>
                    <td colspan="5" style="text-align: center;">
                        <html:submit property="update" value="Update" style="height: 25px"
                            styleId="Update" styleClass="buttonMouseOut"
                            onmouseover="onButtonMouseOver(this.id);"
                            onmouseout="onButtonMouseOut(this.id);" />
                        <html:submit property="clear" value="Clear" style="height: 25px"
                            styleId="Clear" styleClass="buttonMouseOut"
                            onmouseover="onButtonMouseOver(this.id);"
                            onmouseout="onButtonMouseOut(this.id);" />
                    </td>
                </tr>
            </table>
            <!-- Display user's tasks table -->
            <table id="entryTable">
                <logic:notEmpty name="PolicyServiceTaskAssignmentForm"
                    property="tasksList">
                    <tr>
                        <th>
                        </th>
                        <th style="text-align: center;">
                            Job Name
                        </th>
                        <th style="text-align: center;">
                            Experience Level
                        </th>
                        <th style="text-align: center;">
                            Task Name
                        </th>
                        <th style="text-align: center;">
                            Completion Time
                        </th>
                    </tr>
                    <logic:iterate id="row" name="PolicyServiceTaskAssignmentForm" property="tasksList" >
                        <tr>
                            <td>
                                <html:checkbox styleClass="checkbox" name="row" property="checked" />
                            </td>
                            <td>
                                <bean:write name="row" property="jobName" />
                            </td>
                            <td>
                                <bean:write name="row" property="experienceLevel" />
                            </td>
                            <td>
                                <bean:write name="row" property="taskName" />
                            </td>
                            <td>
                                <bean:write name="row" property="completionTime" />
                            </td>
                        </tr>
                    </logic:iterate>

....
</table>
</html:form>
0

There are 0 answers