struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [3/5] struts-extras git commit: Adds info how to define a bean in struts.xml
Date Wed, 22 Mar 2017 05:53:41 GMT
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/7b24dca4
Tree: http://git-wip-us.apache.org/repos/asf/struts-extras/tree/7b24dca4
Diff: http://git-wip-us.apache.org/repos/asf/struts-extras/diff/7b24dca4

Branch: refs/heads/master
Commit: 7b24dca44b05ffbfdfa7f520d979540caf9f44d6
Parents: 994062e
Author: Lukasz Lenart <lukasz.lenart@gmail.com>
Authored: Wed Mar 22 06:52:48 2017 +0100
Committer: Lukasz Lenart <lukasz.lenart@gmail.com>
Committed: Wed Mar 22 06:52:48 2017 +0100

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


http://git-wip-us.apache.org/repos/asf/struts-extras/blob/7b24dca4/struts2-secure-jakarta-multipart-parser-plugin/README.md
----------------------------------------------------------------------
diff --git a/struts2-secure-jakarta-multipart-parser-plugin/README.md b/struts2-secure-jakarta-multipart-parser-plugin/README.md
index 5a14278..c13005b 100644
--- a/struts2-secure-jakarta-multipart-parser-plugin/README.md
+++ b/struts2-secure-jakarta-multipart-parser-plugin/README.md
@@ -15,8 +15,27 @@ 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.SecureJakartaMultiPartRequest"
+            name="secure-jakarta"
+            scope="default"/>
+    
+      <constant name="struts.multipart.parser" value="secure-jakarta"/>
+ ```
+
+- 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.SecureJakartaMultiPartRequest"
+            name="secure-jakarta"
+            scope="prototype"/>
+    
+      <constant name="struts.multipart.parser" value="secure-jakarta"/> 
+ ```
 
 If you are using Maven to build your project, please add the following dependency into your
pom:
   
@@ -28,7 +47,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-multipart-parser-plugin/1.0/struts2-secure-jakarta-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-multipart-parser-plugin/1.0/struts2-secure-jakarta-multipart-parser-plugin-1.0.jar).
 
 ## Remarks
 


Mime
View raw message