Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference between MVC and MVC alongwith a bean  RSS feed

 
Nilesh Sanyal
Ranch Hand
Posts: 33
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have learnt MVC and JavaBeans component. Then I developed two web applications,called as LoginMVC
and Bean_demo2. In LoginMVC, username and password is taken then if username matches with nilesh
and password is equal to 1234, then the Welcome message is displayed.
In Bean_demo2 I have done same task by using MVC alongwith a JavaBeans component. So what is the
difference between these 2 approaches, are they same or not? If not, please tell why not.

Codes for index.jsp page of LoginMVC are as follows...


Codes for LoginServlet page of LoginMVC are as follows...


Codes for LoginModel is as follows...


Codes for success.jsp is


Codes for error.jsp is as follows...


Codes for index.jsp page of Bean_demo2 are as follows...


Codes for LoginServlet is as follows...


Codes for myModel is as follows...


Codes for myBean is


Codes for success.jsp


Codes for error.jsp
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!