aspose file tools*
The moose likes Struts and the fly likes updaing values to database in struts. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "updaing values to database in struts." Watch "updaing values to database in struts." New topic
Author

updaing values to database in struts.

Thiru kumaran M
Greenhorn

Joined: Mar 17, 2010
Posts: 3
Hi every one....

Need your help ya...........

I am fetching the values from database and displaying the DB values in a JSP. I have to update the details in that JSP page and pass it again to DB. Is it possible to pass those updated values of a JSP to database without submitting form ? How to update the database with the recently updated values ? Can any one suggest me ideas ?


Thanks in Advance !!!
Sue Temple
Greenhorn

Joined: May 01, 2010
Posts: 19
Of course, it is possible. But if you want your JSP to be doing the write operations to the database, why do you need Struts? That is very bad coding practice. Please look at one of the Struts tutorials to get started.



David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

If you want to do it without submitting the form you'd need to use Ajax.
 
Don't get me started about those stupid light bulbs.
 
subject: updaing values to database in struts.