Good morning (... day, evening) ranchers.
I have yet another MVC question. I can't always wrap my mind around it, because I'm fairly new to the concept...
Anyways. Please take a look at the following image and let me know if you have any suggestions as of how to better implement the solution:
It should provide searching capabilities for a SQL database.
search.jsp - displays the form, sends it to the servlet and should display the results.
VIEW
search.do - servlet that receives data and prepares the response by accessing a few java classes
CONTROLLER
dbConn.java - connects to the db
MODEL
validate.java - checks user input
MODEL
searchDTO.java - data class (to store individual results), will be a member of ArrayList
MODEL
Please let me know if I got the concept right....
Also, please suggest a way to send the results to jsp... (On jsp, I guess, I will use jstl to render the results.)
Thank you very much, any help would be appreciated!