You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by dg...@apache.org on 2003/07/04 23:21:06 UTC
cvs commit: jakarta-struts/src/share/org/apache/struts/tiles ActionController.java
dgraham 2003/07/04 14:21:06
Modified: src/share/org/apache/struts/tiles ActionController.java
Log:
Formatting changes only.
Revision Changes Path
1.4 +42 -39 jakarta-struts/src/share/org/apache/struts/tiles/ActionController.java
Index: ActionController.java
===================================================================
RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/tiles/ActionController.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ActionController.java 27 Feb 2003 19:20:52 -0000 1.3
+++ ActionController.java 4 Jul 2003 21:21:05 -0000 1.4
@@ -7,7 +7,7 @@
*
* The Apache Software License, Version 1.1
*
- * Copyright (c) 1999-2002 The Apache Software Foundation. All rights
+ * Copyright (c) 1999-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -59,49 +59,52 @@
*
*/
-
package org.apache.struts.tiles;
-import org.apache.struts.action.Action;
-
import java.io.IOException;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
+
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.struts.action.Action;
/**
* Struts wrapper implementation of Controller.
* This implementation allows to wrap a Struts Action in a Controller.
*/
-public class ActionController implements Controller
-{
- /** Struts action wrapped. */
- private Action action;
-
- /**
- * Constructor.
- * @param action Action to be wrapped.
- */
- public ActionController( Action action )
- {
- this.action = action;
- }
-
- /**
- * Method associated to a tile and called immediately before tile is included.
- * This implementation calls a Struts Action. No servlet is set by this method.
- *
- * @param tileContext Current tile context.
- * @param request Current request.
- * @param response Current response.
- * @param servletContext Current servlet context.
- */
- public void perform(ComponentContext tileContext,
- HttpServletRequest request, HttpServletResponse response,
- ServletContext servletContext)
- throws ServletException, IOException
- {
- action.perform(null, null, request, response);
- }
+public class ActionController implements Controller {
+
+ /**
+ * Struts action wrapped.
+ */
+ private Action action=null;
+
+ /**
+ * Constructor.
+ * @param action Action to be wrapped.
+ */
+ public ActionController(Action action) {
+ this.action = action;
+ }
+
+ /**
+ * Method associated to a tile and called immediately before tile is included.
+ * This implementation calls a Struts Action. No servlet is set by this method.
+ *
+ * @param tileContext Current tile context.
+ * @param request Current request.
+ * @param response Current response.
+ * @param servletContext Current servlet context.
+ */
+ public void perform(
+ ComponentContext tileContext,
+ HttpServletRequest request,
+ HttpServletResponse response,
+ ServletContext servletContext)
+ throws ServletException, IOException {
+
+ action.perform(null, null, request, response);
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org