General J2EE design question: Petstore 1.3.1 uses *.screen to directly use TemplateServlet without using RequestProcessor or WebController. It uses *.do when it needs to use Front Controller (MainServlet) and go through all WAF components. I do not see any clear cut when to use *.screen and when to use *.do. Any dynamic page needs to use some data from web controller (Model 2 architecture). If we use *.screen directly, its view helper (JavaBeans and Custom tags) need to get the data by themselves, is this bad (sounds like Model 1 architecture). It seeems to me that every page should go through all WAF components (always use *.do), and templateservlet only uses mirrored data from web controller. Thank you in advance for any comment and help.
posted 14 years ago
It's been awhile since I had time to shop at the petstore. But I thought there were some filters in front of the front controller. Is that not true?
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads