cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/documentation/xdocs/userdocs/concepts actions.xml
Date Tue, 11 Jun 2002 20:27:25 GMT
vgritsenko    2002/06/11 13:27:25

  Modified:    src/documentation/xdocs/userdocs/concepts Tag:
                        cocoon_2_0_3_branch actions.xml
  Log:
  Replace deprecated code with current one.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.4.2.3   +2 -2      xml-cocoon2/src/documentation/xdocs/userdocs/concepts/actions.xml
  
  Index: actions.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/documentation/xdocs/userdocs/concepts/actions.xml,v
  retrieving revision 1.4.2.2
  retrieving revision 1.4.2.3
  diff -u -r1.4.2.2 -r1.4.2.3
  --- actions.xml	24 May 2002 08:11:02 -0000	1.4.2.2
  +++ actions.xml	11 Jun 2002 20:27:25 -0000	1.4.2.3
  @@ -114,9 +114,9 @@
   
   import org.apache.avalon.framework.parameters.Parameters;
   import org.apache.cocoon.acting.AbstractAction;
  -import org.apache.cocoon.Constants;
   import java.util.Map;
   import java.util.HashMap;
  +import org.apache.cocoon.environment.ObjectModelHelper;
   import org.apache.cocoon.environment.Redirector;
   import org.apache.cocoon.environment.Request;
   import org.apache.cocoon.environment.SourceResolver;
  @@ -131,7 +131,7 @@
       Map sitemapParams = new HashMap();
       sitemapParams.put("world", "hello");
   
  -    Request request = (Request) objectModel.get(Constants.REQUEST_OBJECT);
  +    Request request = ObjectModelHelper.getRequest(objectModel);
   
       request.setAttribute("hello", "world");
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message