Basically I am a tester for J2ee application ( struts ). I have got a developed project in which the developer made Jdbc calls in his/her every beans validate method . He made atleast 30 beans and almost every bean is similar somewhat similar to this : ( see below )
these are all he/she made in ActionForms . So what should I suggest him/her ?
now see the actionForms >>> ( I am pasting only 1 example )
I'd also suggest that you tell the developer to read up on the Data Access Object and Transfer Objectpatterns. These patterns are very useful in separating the layers in a database application. [ March 18, 2008: Message edited by: Merrill Higginson ]
I would have to know how this class fit into the big picture to comment too much. What you are showing is not an "ActionForm". I do not understand what it is. It extends HttpServlet but it sure does not look like a servlet to me.