struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rlel...@apache.org
Subject cvs commit: jakarta-struts/src/share/org/apache/struts/tiles/actions ReloadDefinitionsAction.java
Date Thu, 31 Jul 2003 03:43:13 GMT
rleland     2003/07/30 20:43:13

  Modified:    src/share/org/apache/struts/tiles/actions
                        ReloadDefinitionsAction.java
  Log:
  Use
  TilesUtil.createDefinitionsFactory(request,context)
  instead of deprecated method().
  
  Revision  Changes    Path
  1.5       +6 -5      jakarta-struts/src/share/org/apache/struts/tiles/actions/ReloadDefinitionsAction.java
  
  Index: ReloadDefinitionsAction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/tiles/actions/ReloadDefinitionsAction.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ReloadDefinitionsAction.java	4 Feb 2003 02:23:08 -0000	1.4
  +++ ReloadDefinitionsAction.java	31 Jul 2003 03:43:13 -0000	1.5
  @@ -65,6 +65,7 @@
   import org.apache.struts.tiles.DefinitionsUtil;
   import org.apache.struts.tiles.DefinitionsFactoryException;
   import org.apache.struts.tiles.DefinitionsFactory;
  +import org.apache.struts.tiles.TilesUtil;
   
   import java.io.PrintWriter;
   import javax.servlet.ServletContext;
  @@ -115,7 +116,7 @@
   
           try {
             ServletContext context = getServlet().getServletContext();
  -            DefinitionsFactory factory = DefinitionsUtil.getDefinitionsFactory(context
);
  +            DefinitionsFactory factory = TilesUtil.getDefinitionsFactory(request, context);
               factory.setConfig(factory.getConfig(), context);
               writer.println("OK");
           } catch (ClassCastException e) {
  
  
  

---------------------------------------------------------------------
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