Ankit Mishra wrote:Thank you guys for your replies. I have understood your points. Just one clarification will following be a worth for a small web application
JSP (View) - sending data
1 servlet controller which will redirect to different servlets based upon say some hidden parameter.
Bean classes to capture data which will then interact with database codes to do database things.
Actually I just need one servlet where requests from jsp will be redirected from that servlet will call other business logic classes.
Hi Ankit,
I too was looking for the solution for the same problem, like a generic method
by which all the form-data will be captured as a bean before going to the servlet
and in the request scope as in struts etc.
In my case the request is just sent to the appropriate 'Action' class to the handle request,
where i manually parse the request parameters for each request.
Please suggest if you get more effective method to do this.
Regards,
Sree