svn commit: r416854 - /struts/maven/trunk/pom/pom.xml

2006-06-23 Thread mikus
Author: mikus
Date: Fri Jun 23 19:50:09 2006
New Revision: 416854

URL: http://svn.apache.org/viewvc?rev=416854&view=rev
Log:
MichaelJ: added myself to the list

Modified:
struts/maven/trunk/pom/pom.xml

Modified: struts/maven/trunk/pom/pom.xml
URL: 
http://svn.apache.org/viewvc/struts/maven/trunk/pom/pom.xml?rev=416854&r1=416853&r2=416854&view=diff
==
--- struts/maven/trunk/pom/pom.xml (original)
+++ struts/maven/trunk/pom/pom.xml Fri Jun 23 19:50:09 2006
@@ -302,6 +302,14 @@
 Committer
  
   
+  
+ Michael Jouravlev
+ mikus
+ mikus at apache.org
+ 
+Committer
+ 
+  


   




svn commit: r417332 - /struts/site/src/site/xdoc/volunteers.xml

2006-06-26 Thread mikus
Author: mikus
Date: Mon Jun 26 20:20:40 2006
New Revision: 417332

URL: http://svn.apache.org/viewvc?rev=417332&view=rev
Log:
Added myself to the committer's list

Modified:
struts/site/src/site/xdoc/volunteers.xml

Modified: struts/site/src/site/xdoc/volunteers.xml
URL: 
http://svn.apache.org/viewvc/struts/site/src/site/xdoc/volunteers.xml?rev=417332&r1=417331&r2=417332&view=diff
==
--- struts/site/src/site/xdoc/volunteers.xml (original)
+++ struts/site/src/site/xdoc/volunteers.xml Mon Jun 26 20:20:40 2006
@@ -174,6 +174,10 @@
 Ian Roughley
 (roughley at apache.org)
 
+
+Michael Jouravlev
+    (mikus at apache.org)
+
 
 
 
@@ -1253,6 +1257,45 @@
 sub-projects, though I'm keeping an eye on Ti and some of
 the
 other experimental work that's going on.
+
+Michael Jouravlev -- Committer
+
+   In 2001 I joined a team that had been tasked with building a 
front
+   end to a lottery system using Java technology. The system had 
to have
+   Web interface (HTML), cellular phone interface (WML and later 
SMS)
+   as well as audio interface for regular telephone
+   (VoiceXML). Someone suggested to use Struts. I did not know 
about Struts
+   at that time, but the framework quickly proved to be superior 
to simple
+   JSP-based Model1 approach. The team effort resulted in a 
multi-layer
+   application that is still competitive and maintainable 
today.
+
+   Struts proved its value, but some common practices seemed
+   inconvenient or plain wrong to me. I started to read what other 
people
+   say. I found great value in Ted Husted's tips, as well as in 
the book
+   by Chuck Cavaness. After a while I devised some practices of my 
own
+   (or just 
+   http://www.theserverside.com/tt/articles/article.tss?l=RedirectAfterPost";>rediscovered
+   something that others has been doing for long time)
+   and since then I have been trying to improve Struts in different
+   ways.
+
+   I started to think about page flows and Back button support 
back in
+   2002, this resulted in a simple but robust wizard engine. I also
+   wanted to make development with Struts more object-oriented. I 
found
+   DispatchAction useful in this regards but with quirks of its 
own. So I
+   created my own dispatch action that allowed me to process both 
input
+   and render phases of a web resource. Promoting this approach is 
a
+   job of its own.
+
+   My most recent area of interest is web components and Ajax.
+   Creating independent components using Ajax is actually simpler 
than
+   using less fancy patterns like redirect-after-post. In attempt 
to
+   combine Ajax and non-Ajax components into one package I came up 
with
+   idea of http://www.jspcontrols.net/";>dual-mode 
components
+   that work either with or without Javascript.
+
+   Struts has been good to me. I want Struts to keep being 
improved and to
+   remain the Java web framework of choice.
 
 
 




svn commit: r505640 - in /struts/struts1/trunk/core/src/main: java/org/apache/struts/ java/org/apache/struts/chain/commands/servlet/ java/org/apache/struts/config/ java/org/apache/struts/util/ resourc

2007-02-09 Thread mikus
Author: mikus
Date: Fri Feb  9 22:32:27 2007
New Revision: 505640

URL: http://svn.apache.org/viewvc?view=rev&rev=505640
Log:
ASF Bugzilla Bug 2640 / Jira STR-286: do not autopopulate an action form 
corresponding to chained action.

Added:

struts/struts1/trunk/core/src/main/java/org/apache/struts/chain/commands/servlet/ActionPostProcess.java
   (with props)
Modified:
struts/struts1/trunk/core/src/main/java/org/apache/struts/Globals.java

struts/struts1/trunk/core/src/main/java/org/apache/struts/chain/commands/servlet/PopulateActionForm.java

struts/struts1/trunk/core/src/main/java/org/apache/struts/config/ActionConfig.java

struts/struts1/trunk/core/src/main/java/org/apache/struts/util/RequestUtils.java

struts/struts1/trunk/core/src/main/resources/org/apache/struts/chain/chain-config.xml

struts/struts1/trunk/core/src/main/resources/org/apache/struts/resources/struts-config_1_3.dtd

Modified: struts/struts1/trunk/core/src/main/java/org/apache/struts/Globals.java
URL: 
http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apache/struts/Globals.java?view=diff&rev=505640&r1=505639&r2=505640
==
--- struts/struts1/trunk/core/src/main/java/org/apache/struts/Globals.java 
(original)
+++ struts/struts1/trunk/core/src/main/java/org/apache/struts/Globals.java Fri 
Feb  9 22:32:27 2007
@@ -209,4 +209,11 @@
  * The property under which a transaction token is reported.
  */
 public static final String TOKEN_KEY = TAGLIB_PACKAGE + ".TOKEN";
+
+/**
+ * The request attributes key under which forwarding flag is stored.
+ *
+ * @since Struts 1.4
+ */
+public static final String FORWARD_KEY = 
"org.apache.struts.action.FORWARD";
 }

Added: 
struts/struts1/trunk/core/src/main/java/org/apache/struts/chain/commands/servlet/ActionPostProcess.java
URL: 
http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apache/struts/chain/commands/servlet/ActionPostProcess.java?view=auto&rev=505640
==
--- 
struts/struts1/trunk/core/src/main/java/org/apache/struts/chain/commands/servlet/ActionPostProcess.java
 (added)
+++ 
struts/struts1/trunk/core/src/main/java/org/apache/struts/chain/commands/servlet/ActionPostProcess.java
 Fri Feb  9 22:32:27 2007
@@ -0,0 +1,55 @@
+/*
+ * $Id$
+ *
+ * Copyright 2007 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.struts.chain.commands.servlet;
+
+import org.apache.struts.chain.contexts.ActionContext;
+import org.apache.struts.chain.contexts.ServletActionContext;
+import org.apache.struts.chain.commands.ActionCommandBase;
+import org.apache.struts.Globals;
+
+import javax.servlet.http.HttpServletRequest;
+
+/**
+ * Performs post-processing functions in command chain
+ *
+ * @version $Rev$ $Date$ 
+ * @since Struts 1.4
+ */
+public class ActionPostProcess extends ActionCommandBase {
+
+/**
+ * Performs additional functions after an Action or Command
+ * has been called.
+ *
+ * @param context The Context for the current request
+ * @return false so that processing continues
+ * @throws Exception on any error
+ */
+public boolean execute(ActionContext context) throws Exception {
+
+ServletActionContext saContext = (ServletActionContext) context;
+HttpServletRequest request = saContext.getRequest();
+
+// Set flag in request object, notifying chained actions that
+// this request was already processed.
+request.setAttribute(Globals.FORWARD_KEY, Boolean.TRUE);
+
+// Continue chain processing
+return false;
+}
+}

Propchange: 
struts/struts1/trunk/core/src/main/java/org/apache/struts/chain/commands/servlet/ActionPostProcess.java
--
svn:eol-style = native

Propchange: 
struts/struts1/trunk/core/src/main/java/org/apache/struts/chain/commands/servlet/ActionPostProcess.java
--
svn:keywords = Date Author Id Revision HeadURL

Modified: 
struts/struts1/trunk/core/src/main/java/org/apache/struts/chain/commands/servlet/PopulateActionForm.java
URL: 
http://svn.apache.org/viewvc/struts/strut