Two issues: form elements with no form, and using the default xhtml theme, where form element tags include table rows/cells.
You may want to use the "simple" theme, or create/extend a theme. Note the simple theme doesn't emit field errors. Dave (pardon brevity and typos, on cell) On Jun 29, 2012 6:47 PM, "Justin Chin" <jus...@justinchin.com> wrote: > I am having issues getting the Struts Iterator Tag to format correctly. Any > help would greatly be appreciated as this seems very simple, but clearly I > missing something:**** > > Here is my jsp:**** > > <%@ page language=*"java"* contentType=*"text/html; charset=UTF-8" * > pageEncoding=*"UTF-8"*%>**** > > <%@ taglib prefix=*"s"* uri=*"/struts-tags"*%>**** > > <html>**** > > <head>**** > > <title>Bulk Terminate</title>**** > > </head>**** > > ** ** > > <body>**** > > <h1>Bulk Terminate</h1>**** > > ** ** > > <table border=*"1"* "width=*"100%"*>**** > > <tr>**** > > <td>Select User</td>**** > > <td>Full Name</td>**** > > <td>Job Title</td>**** > > </tr>**** > > <tr>**** > > <s:iterator value=*"peopleList"*>**** > > <tr>**** > > <td><s:checkbox name=*"fullName"* /></td>**** > > <td><s:property value=*"fullName"* /></td>**** > > <td><s:property value=*"jobTitle"* /></td>**** > > </tr>**** > > </s:iterator>**** > > </tr>**** > > </table>**** > > </body>**** > > </html>**** > > ** > ** > > This is what it looks like in a browser:**** > > **** > > ** ** > > And here is the HTML code source:**** > > <html>**** > > <head>**** > > <title>Bulk Terminate</title>**** > > </head>**** > > <body>**** > > <h1>Bulk Terminate</h1>**** > > <table border="1" "width="100%">**** > > <tr>**** > > <td>Select User</td>**** > > <td>Full Name</td>**** > > <td>Job Title</td>**** > > </tr>**** > > <tr>**** > > <tr>**** > > <td>**** > > <tr>**** > > <td valign="top" align="right">**** > > </td>**** > > <td valign="top" align="left">**** > > <input type="checkbox" name="fullName" value="true" > id="fullName" /><input type="hidden" id="__checkbox_fullName" > name="__checkbox_fullName" value="true" /> **** > > </td>**** > > </tr>**** > > </td>**** > > <td>John Doe0</td>**** > > <td>Job Title0</td>**** > > </tr>**** > > <tr>**** > > <td>**** > > <tr>**** > > <td valign="top" align="right">**** > > </td>**** > > <td valign="top" align="left">**** > > <input type="checkbox" name="fullName" value="true" > id="fullName" /><input type="hidden" id="__checkbox_fullName" > name="__checkbox_fullName" value="true" /> **** > > </td>**** > > </tr>**** > > </td>**** > > <td>John Doe1</td>**** > > <td>Job Title1</td>**** > > </tr>**** > > <tr>**** > > <td>**** > > <tr>**** > > <td valign="top" align="right">**** > > </td>**** > > <td valign="top" align="left">**** > > <input type="checkbox" name="fullName" value="true" > id="fullName" /><input type="hidden" id="__checkbox_fullName" > name="__checkbox_fullName" value="true" /> **** > > </td>**** > > </tr>**** > > </td>**** > > <td>John Doe2</td>**** > > <td>Job Title2</td>**** > > </tr>**** > > </tr>**** > > </table>**** > > </body>**** > > </html>**** > > ** ** > > Where did all the extra table rows and table cells come from?**** >