Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

In struts, How to solve this with Database and jsp?

 
kaushal sharma
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

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.
for ex.

>> 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?
Q 2. I am not using <form> for this tabular form, and i used to Javascript functions on my JSP page,
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?

FYI




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,


-Thanks in Advance.
Kaushal K. Sharma



 
kaushal sharma
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
He All,


Need help.


-Thanks & Regards,
Kaushal K. Sharma


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic