I seem to have missed something basic somewhere in the interactions between Models, Persistance, and JSPs.
What I am trying to do is bring up a single record for Addition (and later, Edits) to the Persistance. Persistance has the FieldNames, as well as a Description for each field.
So far, I have the JSP displaying the Descriptions displaying properly, as well as the associated Text input fields. Thanks to earlier assistance from Mike, Shash, and the rest of this lest, I can push Field Names and Descriptions out to the JSP. Now, how do I associate the field names with the text boxes?
What I have right now gives me back a single key/value pair, with the key = "clipValue=aValue" and value of null (I opened a bug on SF about the Key/Value bit, see bug# 800107). The last time I had multiple params or attributes with the same name, I could look them up and get an array of values back. That would not be terribly efficient here, but will be useful down the line. So it would be nice to see it implemented, if not too much trouble.
Back to my current issue of matching fieldnames to Input fields, I suspect this is pretty simple, but my Tags/HTML are definately not up to this. Please keep in mind, I am weak with Struts and JSP tags.
Thanks, Steve
What I have right now;
<===Begin Java snippet===>
PersistentMetaData pmd = clipPersistant.getMetaData();
for (Iterator ef = pmd.getFieldNames().iterator(); ef.hasNext();) {
final String oneFieldName = (String) ef.next();
final String description = pmd.getDescription(oneFieldName);
log.debug("Adding Field: " + oneFieldName + " Description:" +
description);
titles.add(res.createOutput(oneFieldName,description ));
}
res.add(titles);
<===Begin JSP Snippet===> <table> <logic:iterate id="clipTitle" name="editClipTitles" property="nested"> <tr> <td><bean:write name="clipTitle"/></td> <td><INPUT TYPE="TEXT" NAME="clipValue"/></td> </tr> </logic:iterate> </table>
-- Java/J2EE Developer/Integrator Co-Chair, Dallas/FortWorth J2EE Sig 214-724-7741
http://keelframework.org/documentation Keelgroup mailing list [EMAIL PROTECTED] http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
