Hi guyz,
Here is the solution for the issue we had
public class ListTextActionForm extends ActionForm {
public List customer;
public void setCustomer(List customer){
this.customer = customer;
}
public List getCustomer() {
return this.customer;
}
pub
Thanks guyz, done with adding new row functionality. :)
On 12/19/05, Irfan Shaikh <[EMAIL PROTECTED]> wrote:
>
> I am getting same error when i submit the form having newly added row.
> Error is :
>
> javax.servlet.ServletExceptio
I am getting same error when i submit the form having newly added row.
Error is :
javax.servlet.ServletException: BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:495)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:
Not yet, let you know once done with that..
Thanks :)
On 12/19/05, atta-ur rehman <[EMAIL PROTECTED]> wrote:
>
> so, have you been able to submit successfully?
>
> On 12/19/05, Irfan Shaikh <[EMAIL PROTECTED]> wrote:
> >
> > Uses the HTMLArray values to populat
> Irfan can you tell me how can we create a new row using java script?
>
>
> -Original Message-
> From: Irfan Shaikh [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 19, 2005 1:12 PM
> To: Struts Users Mailing List
> Subject: Re: Implementation of new row function
r
> has
> added a new row, maybe thru request.getParameter("customer[?].firstName")
> where ? will be an integer 0..n where reuqest.getParameter would return
> null
> for n+1. once you've done that do a:
>
> Customer[] customers = new Customer[n];
> form.set(&qu
Once again Generated HTML :
AIL PROTECTED]> wrote:
>
> Irfan,
>
> By looking at the HTML source of the your page, please show me the name of
> textboxes added thru and name of the textboxes you've
> added
> thru Javascript.
>
> ATTA
>
>
> On 12/17/05, Irfan Shaikh <[EMAIL PROTECTED]
> On 12/17/05, Irfan Shaikh <[EMAIL PROTECTED]> wrote:
> >the problem here is when i populate the data on page for the first
> time i
> > have 4 rows and then i add a new row by javascript
>
> Do you add a row right into the browser's DOM?
>
> >,
ting a new
> collection and adding a object for each row?
>
> If that's the case, then all you need to do is reset the collection of
> objects to the new number of rows submitted by the user.
> Commons-Collection,
> which is required by Sturts(?) have a lazy-list which
Hi All,
I am new to Struts and need to implement a functionality where a
new row is added to table (generated using logic:iterate tag on JSP page )
on the fly(using javascript) and handling newly added row in DynaActionForm
so that row gets saved to database. Need to know how to create a
11 matches
Mail list logo