Hi Vimal,
This is done quite easily. Firstly, there is no need to have 5 empties, and then add one, although you can do that if you want, it'll just require some double checking on the server side, as to which rows are in fact filled in.
But this is what you do basically.
Use a dataTable in your
jsp. For each row, have input elements. The dataTable can point to a List on your bean that can contain 1 empty object, say User object.
Have a commandButton that adds an empty User object to this list. That will in essence add a new row to your dataTable.
Then finally a "batch" Add all button that just goes through all the User objects in the list adding each one as necessary.