I have a jsp page in this page I have one static text field for current date and below this in dynamic table having one text box
and two radio buttons for present and absent. The main work of this page is that I am retriving staff_name from a table and want to be insert every perticular text field value(Staff name) in second table with their status absent OR present
so my question is how it is possible.. because I am facing an a problem the only one(first text field value) adding in the table ..
Hey, I think in your JSP you are starting a <tr> outside the loop therefore only the first row has a <tr> and </tr>. View the source and you should be able to see this.
Also it has to be said, in this day and age java code in JSP's is a big NO. For a start not having the java code there tidies up the HTML in your page in which case you would have been able to find your problem much easier as you can indent it as it should be!
Also doing this allows you to consolidate all your database access so you don't have to set up connections all over the place! There are so many good reasons for doing it, to not is a mistake.
Thanks for reply but my code as it is as you posted but only first value is inserting in the table I could not understanding the problem...
please read all latest code I am posting and suggest me what should in this.......