I developed project using JSP and servlets. The other techs are AJAX, jQuery, JavaScript, JSTL. I am not using any framework. Please let me know if it is in MVC Pattern I am not able to make out, If not I am ready to implement it in Spring. Will I need to rewrite the code for implementing it in spring?
I am not able to send image sorry as my reputation is low. Anyhow, will my application structure be in MVC? Just used jsp and servlets. Used netbeans IDE.
MVC represent Model, View and Controller. Your question doesn’t provide much info about your current architecture but, it should be somewhat like below.
MVC mostly follow Separation between layers. This means all the component should be independent.
Model – Is your viewModel, Entity, POCO or simple DTO. No matter what you dig and get your data but Model should contain the data which you want to show on UI.
View – Is your View which can be anything (ASP, JSP, Silverlight or windows). View should be dumb as possible and just used to render the HTML.
Controller – Controller works like Ring Master of circus. Controller mediate between view and Model, basically controller contains some methods(actions) which binds(or pass) Model to View.
See if you this is you architecture like.