Originally posted by amit taneja:
can you please explain it in detail like
when you say struts servlet, it is struts action class in struts framework, whihc we don't write but that operates on the basis of struts-config.xml
and when you say "application controller" what you mean ?
we code view and action class/ which we extends the dispact action where we logically send action forward object ? i think
Yes, I think the front controller is the strut's servlet you declare on web.xml file (org.apache.struts.action.ActionServlet), and I see every action you code on your application (extending org.apache.struts.action.Action) as an application controller coded using the command pattern.
I don't think it's really useful to discuss too much beyond this point as the patterns on
j2ee book are very abstract. I had never read this book before, and I'm reading it for the architect exam. I'm really hating this book: the patterns are not well explained, it gives you a LOT of bad examples (like coding a front controller using a
JSP and stuff like this) and contains blocks senseless texts, so you have to skim through pages and pages. The problem is that I don't think that we have any other source for this subject, so we will have to read this book anyway, but with some care.
[ October 02, 2007: Message edited by: eduardo ferreira ]