In struts, How to solve this with Database and jsp?
posted 6 years ago
i am new to struts and i have a problem to store the values to my database and retrieve the values to my jsp, hope you people can solve this ....
i am getting the records from database to my jsp, in a tabular format as 1 Record in 1 ROW.
>> First ROW Record >> 1. selectbox 2. textfield 3. checkbox 4. checkbox 5. textfield 6. checkbox 7. CancelIMAGE
>> Second ROW Record >> 1. selectbox 2. textfield 3. checkbox 4. checkbox 5. textfield 6. checkbox 7. Cancel IMAGE
Q 1. How can i get the values for all the fields from the database and how can i store all of them back to database?
ONE for "DELETE ROW" and
SECOND for "ADD NEW ROW"
Both functions are working fine on jsp but not sure how these functions will delete and add the row from / to database?
hope you people don't mind to provide me the code and helpful tips, as i am new to struts i feel you people will help me this way ASAP.
One more thing, please provide me some example tutorials for struts, so that i'll understand,