Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

use of jsp, java serlvets and java beans in MVC model

 
Janet Yap
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I wish to appy MVC model in developing a website. But, I am not sure in writing codes for the java bean and servlet.
I plan to use a java serlvet as a Controller to process the information submitted by a form.
A java bean will be used as a model to access the database via SQL to retrive and store the data that meet the criteria.
Based on the information submitted via a form, the servlet will set the property of the bean.
A jsp will get the data retrived from the database via java bean for display.
Can I have some examples of codes for java bean(the model) and java serlvet(the Controller) that can be used for the scenario as described above.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch "Yap sp"!
You'll find this forum a great place to seek help on JSP pages, and there aren't many rules you'll have to worry about, but one is that proper names are required. Please take a look at the JavaRanch Naming Policy and change your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Thanks!
bear
JSP Forum Bartender
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic