Hi
I am a newbie to struts...
I have a dynamic table which has a html:text and a html:select . The user cliks
on a add button and enter values in each row of the table and submits the form.
How can I repopulate the valuse if validation fails.
Can some body give a working exapmle of the
doesn't the form do this automatically? if validation fails, i think
the standard behavior is to return the user to the page just as they
left it -- preferably with the appropriate error messagei know
there are multiple ways to do the validation (and i'm not using the
best way), but
(for you) online struts tutorial. What
you are trying to do is a freebie in struts (if everything is setup right).
-Original Message-
From: Sashi Ravipati [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 10:59 AM
To: [EMAIL PROTECTED]
Subject: How to repopulate Form which has html
Sorry... But I think your solution is a some dirty.
You can use a bean like mytable...
public class MyTable {
private Collection formBean;
public Object getFormBean(){
return formBean;
}
void setFormBean(Collection c){
formBean = c;
}
}
in a Servlet ... put
4 matches
Mail list logo