struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [1/5] struts-extras git commit: Adds info how to define a bean in struts.xml
Date Wed, 22 Mar 2017 05:53:39 GMT
Repository: struts-extras
Updated Branches:
  refs/heads/master f7be30754 -> c477f3ebc


Adds info how to define a bean in struts.xml


Project: http://git-wip-us.apache.org/repos/asf/struts-extras/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts-extras/commit/3440fcaa
Tree: http://git-wip-us.apache.org/repos/asf/struts-extras/tree/3440fcaa
Diff: http://git-wip-us.apache.org/repos/asf/struts-extras/diff/3440fcaa

Branch: refs/heads/master
Commit: 3440fcaa27d30a4c801a3893787b71525de99ab9
Parents: f7be307
Author: Lukasz Lenart <lukasz.lenart@gmail.com>
Authored: Wed Mar 22 06:50:14 2017 +0100
Committer: Lukasz Lenart <lukasz.lenart@gmail.com>
Committed: Wed Mar 22 06:50:14 2017 +0100

----------------------------------------------------------------------
 .../README.md                                   | 28 +++++++++++++++++---
 1 file changed, 25 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-extras/blob/3440fcaa/struts2-secure-jakarta-stream-multipart-parser-plugin/README.md
----------------------------------------------------------------------
diff --git a/struts2-secure-jakarta-stream-multipart-parser-plugin/README.md b/struts2-secure-jakarta-stream-multipart-parser-plugin/README.md
index 3e52efd..ca085f0 100644
--- a/struts2-secure-jakarta-stream-multipart-parser-plugin/README.md
+++ b/struts2-secure-jakarta-stream-multipart-parser-plugin/README.md
@@ -15,8 +15,29 @@ you must migrate to the latest version which is [Struts 2.5.10.1](http://struts.
 
 ## How to use it
 
-Just drop the jar into `WEB-INF/libs` folder and restart your application, you can use on
of the existing PoCs
-to test if everything is ok.
+Just drop the jar into `WEB-INF/libs` folder and add the bellow definition into your `struts.xml`:
+
+- if you are running the Apache Struts 2.3.8 - 2.3.31
+ ```xml
+      <bean type="org.apache.struts2.dispatcher.multipart.MultiPartRequest"
+            class="org.apache.struts.extras.SecureJakartaStreamMultiPartRequest"
+            name="secure-jakarta-stream"
+            scope="default"/>
+    
+      <constant name="struts.multipart.parser" value="secure-jakarta-stream"/>
+ ```
+
+- if you are running the Apache Struts 2.5 - .2.5.5
+ ```xml
+      <bean type="org.apache.struts2.dispatcher.multipart.MultiPartRequest"
+            class="org.apache.struts.extras.SecureJakartaStreamMultiPartRequest"
+            name="secure-jakarta-stream"
+            scope="prototype"/>
+    
+      <constant name="struts.multipart.parser" value="secure-jakarta-stream"/> 
+ ```
+
+and then restart your application, you can use on of the existing PoCs to test if everything
is ok.
 
 If you are using Maven to build your project, please add the following dependency into your
pom:
   
@@ -28,7 +49,8 @@ If you are using Maven to build your project, please add the following dependenc
 </dependency>
 ```
 
-If you are not building with Maven or you simply need the Jar to drop it into an existing
Struts 2 based application deployment, you can [download it directly from Maven Central](http://search.maven.org/remotecontent?filepath=org/apache/struts/struts2-secure-jakarta-stream-multipart-parser-plugin/1.0/struts2-secure-jakarta-stream-multipart-parser-plugin-1.0.jar).
+If you are not building with Maven or you simply need the Jar to drop it into an existing
Struts 2 based application deployment, 
+you can [download it directly from Maven Central](http://search.maven.org/remotecontent?filepath=org/apache/struts/struts2-secure-jakarta-stream-multipart-parser-plugin/1.0/struts2-secure-jakarta-stream-multipart-parser-plugin-1.0.jar).
 
 ## Remarks
 


Mime
View raw message