Author: niallp
Date: Fri Apr 29 19:08:01 2005
New Revision: 165373
URL: http://svn.apache.org/viewcvs?rev=165373&view=rev
Log:
update svn properties
Modified:
struts/bsf/trunk/src/java/org/apache/struts/bsf/BSFManagerFilter.java
(contents, props changed)
struts/bsf/trunk/src/java/org/apache/struts/bsf/RequestToVariableFilter.java
(contents, props changed)
struts/bsf/trunk/src/java/org/apache/struts/bsf/ScriptAction.java (props
changed)
struts/bsf/trunk/src/java/org/apache/struts/bsf/StrutsInfo.java (props
changed)
struts/bsf/trunk/src/java/org/apache/struts/bsf/TestFilter.java
(contents, props changed)
Modified: struts/bsf/trunk/src/java/org/apache/struts/bsf/BSFManagerFilter.java
URL:
http://svn.apache.org/viewcvs/struts/bsf/trunk/src/java/org/apache/struts/bsf/BSFManagerFilter.java?rev=165373&r1=165372&r2=165373&view=diff
==============================================================================
--- struts/bsf/trunk/src/java/org/apache/struts/bsf/BSFManagerFilter.java
(original)
+++ struts/bsf/trunk/src/java/org/apache/struts/bsf/BSFManagerFilter.java Fri
Apr 29 19:08:01 2005
@@ -1,29 +1,29 @@
-package org.apache.struts.bsf;
-
-import org.apache.bsf.BSFManager;
-import java.util.Properties;
-
-/**
- * Defines a class that wants to manipulate the contents of the scripting
- * context before the script is executed. An example would be a class that
- * puts business facade classes in the context.
- */
-public interface BSFManagerFilter {
-
- /**
- * Initializes the filter. Properties can be retrieved as:
- *
<code>struts-bsf.filters.FILTER_NAME.PROPERTY_NAME=PROPERTY_VALUE</code>
- * where FILTER_NAME is the "name" parameter.
- *
- * @param name The name of the filter
- * @param props The properties
- */
- public void init(String name, Properties props);
-
- /**
- * Applies the filter.
- *
- * @param mgr The scripting manager
- */
- public BSFManager apply(BSFManager mgr);
-}
+package org.apache.struts.bsf;
+
+import org.apache.bsf.BSFManager;
+import java.util.Properties;
+
+/**
+ * Defines a class that wants to manipulate the contents of the scripting
+ * context before the script is executed. An example would be a class that
+ * puts business facade classes in the context.
+ */
+public interface BSFManagerFilter {
+
+ /**
+ * Initializes the filter. Properties can be retrieved as:
+ *
<code>struts-bsf.filters.FILTER_NAME.PROPERTY_NAME=PROPERTY_VALUE</code>
+ * where FILTER_NAME is the "name" parameter.
+ *
+ * @param name The name of the filter
+ * @param props The properties
+ */
+ public void init(String name, Properties props);
+
+ /**
+ * Applies the filter.
+ *
+ * @param mgr The scripting manager
+ */
+ public BSFManager apply(BSFManager mgr);
+}
Propchange:
struts/bsf/trunk/src/java/org/apache/struts/bsf/BSFManagerFilter.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
struts/bsf/trunk/src/java/org/apache/struts/bsf/BSFManagerFilter.java
('svn:executable' removed)
Propchange:
struts/bsf/trunk/src/java/org/apache/struts/bsf/BSFManagerFilter.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision
Modified:
struts/bsf/trunk/src/java/org/apache/struts/bsf/RequestToVariableFilter.java
URL:
http://svn.apache.org/viewcvs/struts/bsf/trunk/src/java/org/apache/struts/bsf/RequestToVariableFilter.java?rev=165373&r1=165372&r2=165373&view=diff
==============================================================================
---
struts/bsf/trunk/src/java/org/apache/struts/bsf/RequestToVariableFilter.java
(original)
+++
struts/bsf/trunk/src/java/org/apache/struts/bsf/RequestToVariableFilter.java
Fri Apr 29 19:08:01 2005
@@ -1,75 +1,75 @@
-package org.apache.struts.bsf;
-
-import org.apache.bsf.BSFManager;
-import org.apache.bsf.BSFException;
-import java.util.Properties;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import javax.servlet.http.HttpServletRequest;
-import java.util.Enumeration;
-
-
-/**
- * Takes request parameters and declares variables with them. If a variable
- * is already exists with that name, a "_" is prepended to the name. Both
- * Strings and arrays are recognized.
- */
-public class RequestToVariableFilter implements BSFManagerFilter {
-
- private static final Log log = LogFactory.getLog(TestFilter.class);
-
- /**
- * Initializes the filter.
- *
- * @param name The name of the filter
- * @param props The properties
- */
- public void init(String name, Properties props) {}
-
- /**
- * Applies the filter.
- *
- * @param mgr The bsf manager
- * @return The bsf manager
- */
- public BSFManager apply(BSFManager mgr) {
- HttpServletRequest request =
(HttpServletRequest)mgr.lookupBean("request");
- String[] values = null;
- String name = null, newName = null;
- Object o = null;
- for (Enumeration e = request.getParameterNames(); e.hasMoreElements();
) {
- name = (String)e.nextElement();
- o = mgr.lookupBean(name);
- if (o == null) {
- newName = name;
- }
- else {
- newName = "_" + name;
- }
-
- values = request.getParameterValues(name);
- try {
- if (values.length>1) {
- mgr.declareBean(newName, values, values.getClass());
- if (log.isDebugEnabled()) {
- log.debug("creating array var "+newName);
- }
- }
- else {
- mgr.declareBean(newName, values[0], String.class);
- if (log.isDebugEnabled()) {
- log.debug("creating string var "+newName);
- }
- }
- }
- catch (BSFException ex) {
- log.warn("Unable to set variable "+newName, ex);
- }
-
- }
- if (log.isDebugEnabled()) {
- log.debug("Done filtering");
- }
- return mgr;
- }
-}
+package org.apache.struts.bsf;
+
+import org.apache.bsf.BSFManager;
+import org.apache.bsf.BSFException;
+import java.util.Properties;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import javax.servlet.http.HttpServletRequest;
+import java.util.Enumeration;
+
+
+/**
+ * Takes request parameters and declares variables with them. If a variable
+ * is already exists with that name, a "_" is prepended to the name. Both
+ * Strings and arrays are recognized.
+ */
+public class RequestToVariableFilter implements BSFManagerFilter {
+
+ private static final Log log = LogFactory.getLog(TestFilter.class);
+
+ /**
+ * Initializes the filter.
+ *
+ * @param name The name of the filter
+ * @param props The properties
+ */
+ public void init(String name, Properties props) {}
+
+ /**
+ * Applies the filter.
+ *
+ * @param mgr The bsf manager
+ * @return The bsf manager
+ */
+ public BSFManager apply(BSFManager mgr) {
+ HttpServletRequest request =
(HttpServletRequest)mgr.lookupBean("request");
+ String[] values = null;
+ String name = null, newName = null;
+ Object o = null;
+ for (Enumeration e = request.getParameterNames(); e.hasMoreElements();
) {
+ name = (String)e.nextElement();
+ o = mgr.lookupBean(name);
+ if (o == null) {
+ newName = name;
+ }
+ else {
+ newName = "_" + name;
+ }
+
+ values = request.getParameterValues(name);
+ try {
+ if (values.length>1) {
+ mgr.declareBean(newName, values, values.getClass());
+ if (log.isDebugEnabled()) {
+ log.debug("creating array var "+newName);
+ }
+ }
+ else {
+ mgr.declareBean(newName, values[0], String.class);
+ if (log.isDebugEnabled()) {
+ log.debug("creating string var "+newName);
+ }
+ }
+ }
+ catch (BSFException ex) {
+ log.warn("Unable to set variable "+newName, ex);
+ }
+
+ }
+ if (log.isDebugEnabled()) {
+ log.debug("Done filtering");
+ }
+ return mgr;
+ }
+}
Propchange:
struts/bsf/trunk/src/java/org/apache/struts/bsf/RequestToVariableFilter.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
struts/bsf/trunk/src/java/org/apache/struts/bsf/RequestToVariableFilter.java
('svn:executable' removed)
Propchange:
struts/bsf/trunk/src/java/org/apache/struts/bsf/RequestToVariableFilter.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision
Propchange: struts/bsf/trunk/src/java/org/apache/struts/bsf/ScriptAction.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/bsf/trunk/src/java/org/apache/struts/bsf/ScriptAction.java
('svn:executable' removed)
Propchange: struts/bsf/trunk/src/java/org/apache/struts/bsf/ScriptAction.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision
Propchange: struts/bsf/trunk/src/java/org/apache/struts/bsf/StrutsInfo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/bsf/trunk/src/java/org/apache/struts/bsf/StrutsInfo.java
('svn:executable' removed)
Propchange: struts/bsf/trunk/src/java/org/apache/struts/bsf/StrutsInfo.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision
Modified: struts/bsf/trunk/src/java/org/apache/struts/bsf/TestFilter.java
URL:
http://svn.apache.org/viewcvs/struts/bsf/trunk/src/java/org/apache/struts/bsf/TestFilter.java?rev=165373&r1=165372&r2=165373&view=diff
==============================================================================
--- struts/bsf/trunk/src/java/org/apache/struts/bsf/TestFilter.java (original)
+++ struts/bsf/trunk/src/java/org/apache/struts/bsf/TestFilter.java Fri Apr 29
19:08:01 2005
@@ -1,35 +1,35 @@
-package org.apache.struts.bsf;
-
-import org.apache.bsf.BSFManager;
-import java.util.Properties;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-/**
- * Tests to make sure the filtering system is working
- */
-public class TestFilter implements BSFManagerFilter {
-
- private static final Log log = LogFactory.getLog(TestFilter.class);
-
- /**
- * Initializes the filter
- *
- * @param name The name of the filter
- * @param props The properties
- */
- public void init(String name, Properties props) {
- log.info("Initializing TestFilter");
- }
-
- /**
- * Applies the filter
- *
- * @param mgr The bsf manager
- * @return The bsf manager
- */
- public BSFManager apply(BSFManager mgr) {
- log.info("Filtering in TestFilter");
- return mgr;
- }
-}
+package org.apache.struts.bsf;
+
+import org.apache.bsf.BSFManager;
+import java.util.Properties;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+/**
+ * Tests to make sure the filtering system is working
+ */
+public class TestFilter implements BSFManagerFilter {
+
+ private static final Log log = LogFactory.getLog(TestFilter.class);
+
+ /**
+ * Initializes the filter
+ *
+ * @param name The name of the filter
+ * @param props The properties
+ */
+ public void init(String name, Properties props) {
+ log.info("Initializing TestFilter");
+ }
+
+ /**
+ * Applies the filter
+ *
+ * @param mgr The bsf manager
+ * @return The bsf manager
+ */
+ public BSFManager apply(BSFManager mgr) {
+ log.info("Filtering in TestFilter");
+ return mgr;
+ }
+}
Propchange: struts/bsf/trunk/src/java/org/apache/struts/bsf/TestFilter.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/bsf/trunk/src/java/org/apache/struts/bsf/TestFilter.java
('svn:executable' removed)
Propchange: struts/bsf/trunk/src/java/org/apache/struts/bsf/TestFilter.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]