You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2003/05/23 21:16:51 UTC

cvs commit: jakarta-struts/doc/userGuide building_model.xml building_controller.xml

husted      2003/05/23 12:16:50

  Modified:    doc/userGuide building_model.xml building_controller.xml
  Log:
  Apply #:19459 from Phil Steitz.
  
  Revision  Changes    Path
  1.19      +5 -4      jakarta-struts/doc/userGuide/building_model.xml
  
  Index: building_model.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/doc/userGuide/building_model.xml,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- building_model.xml	19 Jan 2003 00:40:41 -0000	1.18
  +++ building_model.xml	23 May 2003 19:16:50 -0000	1.19
  @@ -11,6 +11,7 @@
       <author>Mike Schachter</author>
       <author>Ted Husted</author>
       <author>Martin Cooper</author>
  +    <author>Phil Steitz</author>
       <title>The Struts User's Guide - Building Model Components</title>
   </properties>
   
  @@ -136,13 +137,13 @@
       <ul>
       
           <li>
  -        Check in the user's session for an instance of a bean of the
  -        appropriate class, under the appropriate key.
  +        Check for an instance of a bean of the appropriate class, under the appropriate key,
  +        in the appropriate scope (request or session).
           </li>
   
           <li>
  -        If there is no such session scope bean available, a new one is
  -        automatically created and added to the user's session.
  +        If there is no such bean instance available, a new one is
  +        automatically created and added to the appropriate scope (request or session).
           </li>
   
           <li>
  
  
  
  1.58      +6 -3      jakarta-struts/doc/userGuide/building_controller.xml
  
  Index: building_controller.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/doc/userGuide/building_controller.xml,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- building_controller.xml	10 May 2003 15:31:07 -0000	1.57
  +++ building_controller.xml	23 May 2003 19:16:50 -0000	1.58
  @@ -17,6 +17,7 @@
       <author>Yann Cebron</author>
       <author>David Graham</author>
       <author>Tim O'Brien</author>
  +    <author>Phil Steitz</author>
   </properties>
   
   <body>
  @@ -1207,7 +1208,7 @@
       First the form bean is defined.  
       A basic bean of class "<code>org.apache.struts.webapp.example.LogonForm</code>"
       is mapped to the logical name "<code>logonForm</code>". 
  -    This name is used as a session or request attribute name for the form 
  +    This name is used as a request attribute name for the form
       bean.
       </p>
   
  @@ -1222,12 +1223,14 @@
       As you can see, this mapping matches the path <code>/logon</code> 
       (actually, because the MailReader example application uses extension 
       mapping, the request URI you specify in a JSP page would end in 
  -    <code>/logon.do</code>).  
  -    When a request that matches this path is received, an instance of the 
  +    <code>/logon.do</code>).
  +    When a request that matches this path is received, an instance of the
       <i>LogonAction</i> class will be created (the first time only) and used. 
       The controller servlet will look for a session scoped bean under key 
       <code>logonForm</code>, creating and saving a bean of the specified class 
       if needed.
  +    A <i>LogonForm</i> object will be created and saved as a request attribute
  +    under the key <code>logonForm</code>.
       </p>
      
       <p>
  
  
  

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