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.