Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help in MVC please

 
Rakesh Keerthi
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i've written the below jsp. now i want to make it into a MVC pattern. could you please help me how do i do it. i request you to please divide the code and edit it(i want to have an idea how it is to be done so that i'll implement in my other jsps).




Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64970
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you haven't read this article yet, it might be helpful.

Essentially you'd move the DB access to the model, control to a servlet, and leave only view in the JSP.

And, of course, no Java code in the JSP!
 
Rakesh Keerthi
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the suggestion Bear
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic