wood burning stoves*
The moose likes Struts and the fly likes In struts, How to solve this with Database and jsp? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "In struts, How to solve this with Database and jsp?" Watch "In struts, How to solve this with Database and jsp?" New topic
Author

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

kaushal sharma
Greenhorn

Joined: Oct 04, 2009
Posts: 26
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

Joined: Oct 04, 2009
Posts: 26
He All,


Need help.


-Thanks & Regards,
Kaushal K. Sharma


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: In struts, How to solve this with Database and jsp?