Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

insert/update in java web apps

 
J Das
Ranch Hand
Posts: 83
Firefox Browser Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello.... can someone explain me how data can be inserted,updated etc.. in a database that is part of a java web application... please explain me in terms of the MVC architechture (with Servlet,Jsp,POJO/Bean )...
my question in simple words is If we consider the MVC architechture, and consider that we have a database , how does the data from say, an (html) form , gets inserted into the database tables.. Please help me understand this....

Please provide necesssary links of free ebooks or tutorials if there are any on this matter....
 
Madhan Sundararajan Devaki
Ranch Hand
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
View Controller Model (VCM) : V=HTML/JSP; C=Servlet; M=DAO/JDBC Layer

You need to write Java code that, should send the values entered in V to the C which should call the right entity in M.

Entities in M interact with the DB to insert/update/delete/select data.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic