Madhav Turangi
Madhav Turangi wrote:It is a good intention to refactor the code. Identify the business logic within the JSPs from that deals with presentation. Start moving them out from JSPs into classes. Once the JSPs become light-weight, then re-consider the Java classes to further refactor them improving their quality. This is one approach that came into my mind, there could be some other approaches that might work better. Basically it has to start from somewhere. Refactoring the legacy application code takes more than one iteration.
K. Tsang CEng MBCS PMP PMI-ACP OCMJEA OCPJP
M Shiner wrote:I'm not very clued up on servlets nor any decent design patterns which would help me separate these into a front-end and back-end style (I heard MVC is something I should be looking at.. Unless anyone can recommend me a design pattern I can implement).
Bear Bibeault wrote:
M Shiner wrote:I'm not very clued up on servlets nor any decent design patterns which would help me separate these into a front-end and back-end style (I heard MVC is something I should be looking at.. Unless anyone can recommend me a design pattern I can implement).
Please read this article carefully.
(Refreshing is a problem here because of the forwarder but since the form is incorrect it won't cause any problems other than more processing server-side).${callback.exception}
where I can display the next step.response.sendRedirect("NewPage.jsp?id=" + id);
Did you ever grow anything in the garden of your mind? - Fred Rogers. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|