The moose likes JSP and the fly likes Help in MVC please Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Help in MVC please" Watch "Help in MVC please" New topic

Help in MVC please

Rakesh Keerthi
Ranch Hand

Joined: Jul 16, 2012
Posts: 136

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

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60071

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!

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rakesh Keerthi
Ranch Hand

Joined: Jul 16, 2012
Posts: 136
thanks for the suggestion Bear
I agree. Here's the link: http://aspose.com/file-tools
subject: Help in MVC please
Similar Threads
Sql not working for multiple rows
unable to get form Parameters
how to use <%=temp%> i retrieving data
Implementation of google charts in JSP
Getting elements by id