I have a set of hidden fields all named "deletedId" but with different
values. What type should this be in my ActionForm? It works if I have
private String[] deletedId; and related accessor methods.
My problem is that I want to use the JSTL's EL to get the size of this
array. I tried ${myForm.deletedId.length} with no success so I tried using
a custom Collection class with a getSize() method and
${myForm.deletedId.size}. So I have a
public Collection getDeletedId() and a
public void setDeletedId(String[] id) method. Struts apparently didn't like
that I was trying to trick it and doesn't refill the array when there's an
error on the form.
Any suggestions?
Thanks,
Dave
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
- RE: How does Struts handle arrays of fields? David Graham
- RE: How does Struts handle arrays of fields? Karr, David
- RE: How does Struts handle arrays of fields? David Graham
- RE: How does Struts handle arrays of fields? Karr, David