Thanks very much, this was the problem. I didn't realize that (if I
understand the problem correctly) setting name="item" in the html:text tag
would tell it to put the result in a form-bean called "item" instead of
the correct one which was "items".
Brady
> I really think the inconsistent usage
: [EMAIL PROTECTED]
|
| cc:
|
| Subject: Re: array of indexed html:te
ject: Re: array of indexed html:text values not submitting
|
>|
I caught the DynaValidatorActionForm/DynaValidatorForm proble
Matt Bathje wrote:
I really think the inconsistent usage of item/items is your problem
here. Try changing the c:forEach var="item" to be var="items" and then
change your html:text name="item" to have name="items".
The name for the html:text needs to generate the form-property from your
form bea
I really think the inconsistent usage of item/items is your problem
here. Try changing the c:forEach var="item" to be var="items" and then
change your html:text name="item" to have name="items".
The name for the html:text needs to generate the form-property from your
form bean definition for th
I caught the DynaValidatorActionForm/DynaValidatorForm problem too after I
sent out the email and corrected it but it didn't help.
Here are a few lines of my JSP (which should explain the item/items
question):
and here's the resulting html:
BTW: I tried updating
I see 2 things wrong right now - first is that you are using a
DynaValidatorActionForm in your form-bean definition, but a
DynaValidatorForm to cast the form in your loader and action code. This
is not the cause of your problem I think, just something to watch out for.
The second is that I'm no
Thanks for the reply. Here are the relevant sections of LoadAction and
PersistAction:
LoadAction:
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
Dyn
[EMAIL PROTECTED] wrote:
I'm working from the examples here:
http://www.developer.com/java/ejb/article.php/3321521
I have an array of values that are sent to a page for editing. The page
is coming up ok with the correct text box values as seen below
(item[0].xxx, etc). But when the form is submit
I'm working from the examples here:
http://www.developer.com/java/ejb/article.php/3321521
I have an array of values that are sent to a page for editing. The page
is coming up ok with the correct text box values as seen below
(item[0].xxx, etc). But when the form is submitted the changes don't
sh
10 matches
Mail list logo