struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@struts.apache.org
Subject [Apache Struts Wiki] Updated: StrutsCatalogLinkOnlyToActions
Date Thu, 03 Jun 2004 16:27:24 GMT
   Date: 2004-06-03T09:27:24
   Editor: KennethCavness <kcavness@comcast.net>
   Wiki: Apache Struts Wiki
   Page: StrutsCatalogLinkOnlyToActions
   URL: http://wiki.apache.org/struts/StrutsCatalogLinkOnlyToActions

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -1,6 +1,6 @@
 StrutsCatalog: '''Link only to Actions'''
 
-In a Model 2 environment, the pages are supposed to be pretty but stupid. Flow to a page
should go through an Action first, and the Action should assemble all the data that a page
might need and put it into the request or session context. The page then just grabs what it
needs, and figures out how to display it. The Action may not known the address of the page
(that's in the config file), but it does need a punch list of what data the page may require.
Every page should have an Action handler. One Action may handle several different pages, or
a page could be handled by several different Actions (e.g. an error page), but each page should
have at least one handler. 
+In a Model 2 environment, the pages are supposed to be pretty but stupid. Flow to a page
should go through an Action first, and the Action should assemble all the data that a page
might need and put it into the request or session context. The page then just grabs what it
needs, and figures out how to display it. The Action may not know the address of the page
(that's in the config file), but it does need a punch list of what data the page may require.
Every page should have an Action handler. One Action may handle several different pages, or
a page could be handled by several different Actions (e.g. an error page), but each page should
have at least one handler. 
 
 If a JSP ends up on your browser's address bar after the initial index page, then you're
missing an Action ;-)
 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message