It's not a secret anymore!*
The moose likes JSP and the fly likes use of jsp, java serlvets and java beans in MVC model Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "use of jsp, java serlvets and java beans in MVC model " Watch "use of jsp, java serlvets and java beans in MVC model " New topic
Author

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

Janet Yap
Greenhorn

Joined: Mar 13, 2004
Posts: 24
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

Joined: Jan 10, 2002
Posts: 61103
    
  66

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: use of jsp, java serlvets and java beans in MVC model