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.
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