struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ced...@apache.org
Subject cvs commit: jakarta-struts/web/tiles-documentation/WEB-INF struts-tests-config.xml
Date Fri, 16 May 2003 10:06:46 GMT
cedric      2003/05/16 03:06:46

  Modified:    src/share/org/apache/struts/tiles/actions
                        ViewDefinitionsAction.java
               web/tiles-documentation/WEB-INF struts-tests-config.xml
  Log:
  Update the action to remove the deprecated call.
  Add an entry in the config to test the view definitions action in a module.
  
  Revision  Changes    Path
  1.6       +5 -5      jakarta-struts/src/share/org/apache/struts/tiles/actions/ViewDefinitionsAction.java
  
  Index: ViewDefinitionsAction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/tiles/actions/ViewDefinitionsAction.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ViewDefinitionsAction.java	15 May 2003 15:56:31 -0000	1.5
  +++ ViewDefinitionsAction.java	16 May 2003 10:06:45 -0000	1.6
  @@ -62,7 +62,7 @@
   
   package org.apache.struts.tiles.actions;
   
  -import org.apache.struts.tiles.DefinitionsUtil;
  +import org.apache.struts.tiles.TilesUtil;
   import org.apache.struts.tiles.DefinitionsFactory;
   
   import java.io.PrintWriter;
  @@ -111,7 +111,7 @@
   
           try {
             ServletContext context = getServlet().getServletContext();
  -            DefinitionsFactory factory = DefinitionsUtil.getDefinitionsFactory(context
);
  +            DefinitionsFactory factory = TilesUtil.getDefinitionsFactory(request, context
);
               writer.println( factory.toString() );
           } catch (Exception e) {
               writer.println("FAIL - " + e.toString());
  
  
  
  1.4       +5 -0      jakarta-struts/web/tiles-documentation/WEB-INF/struts-tests-config.xml
  
  Index: struts-tests-config.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/web/tiles-documentation/WEB-INF/struts-tests-config.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- struts-tests-config.xml	22 Mar 2003 00:28:39 -0000	1.3
  +++ struts-tests-config.xml	16 May 2003 10:06:45 -0000	1.4
  @@ -64,6 +64,11 @@
         <forward  name="success"        path="test.action.noforward"/>
     </action>
   
  +    <!-- The standard administrative actions available with Struts -->
  +    <!-- These would be either omitted or protected by security -->
  +    <!-- in a real application deployment -->
  +     <action    path="/admin/viewdef"
  +               type="org.apache.struts.tiles.actions.ViewDefinitionsAction"/>
     </action-mappings>
   
     
  
  
  

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


Mime
View raw message