This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am writing a servlet which updates multiple database tables at once... now I have a HTML front end file and a servlet. and I am printing the output about successful and unsuccessful insertion using out.print() where out is a PrintWriter to Response object of servlet
Total business logic is there in the servlet
My questions are
1. Is it possible for me to adopt MVC pattern for this
2. if not How I should organize my code...How to divide and place....
3.Where to keep the output info....
Hareesh Ram Chanchali
SCJP 5.0, IBM Certified Solution Designer
Do as Ben directed. Then put some logic while inserting data in tables. You can populate a collection of a Bean, which would have appropriate message in it. Then bind that collection with your request object, and so forth. . . so forth.