• Post Reply Bookmark Topic Watch Topic
  • New Topic

petstore *.screen vs. *.do

 
Chenping Ni
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rufus BugleWeed
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!