(struts-site) branch asf-staging updated: Updates stage by Jenkins

2024-01-11 Thread git-site-role
This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-staging
in repository https://gitbox.apache.org/repos/asf/struts-site.git


The following commit(s) were added to refs/heads/asf-staging by this push:
 new 98313700b Updates stage by Jenkins
98313700b is described below

commit 98313700b6607b623821d845904e105c11eb4ead
Author: jenkins 
AuthorDate: Thu Jan 11 08:18:56 2024 +

Updates stage by Jenkins
---
 content/core-developers/action-file-upload-interceptor.html | 2 +-
 content/core-developers/file-upload.html| 7 ---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/content/core-developers/action-file-upload-interceptor.html 
b/content/core-developers/action-file-upload-interceptor.html
index 1c99c5b98..310dffc9d 100644
--- a/content/core-developers/action-file-upload-interceptor.html
+++ b/content/core-developers/action-file-upload-interceptor.html
@@ -229,7 +229,7 @@ and which are not.
 
@Override
public void withUploadedFiles(ListUploadedFile uploadedFiles) {
-  if (!uploadedFiles.isEmpty()  
0) {
+  if (!uploadedFiles.isEmpty()) {
  this.uploadedFile = uploadedFiles.get(0);
  this.fileName = uploadedFile.getName();
  this.contentType = uploadedFile.getContentType();
diff --git a/content/core-developers/file-upload.html 
b/content/core-developers/file-upload.html
index 9438fb836..c9d2e8274 100644
--- a/content/core-developers/file-upload.html
+++ b/content/core-developers/file-upload.html
@@ -196,8 +196,9 @@ The library is included in a base Struts 2 distribution.
 Basic Usage
 
 The org.apache.struts2.interceptor.FileUploadInterceptor 
and org.apache.struts2.interceptor.ActionFileUploadInterceptor
-classes is included as part of the defaultStack. As long as  the required libraries are 
added to your project you will be able 
-to take advantage of the Struts 2 file upload capability. Configure an Action 
mapping for your Action class as you typically would.
+interceptors are included as part of the defaultStack and named appropriately: fileUpload and actionFileUpload. 
+As long as the required libraries are added to your project you will be able 
to take advantage of the Struts 2 file upload 
+capability. Configure an Action mapping for your Action class as you typically 
would.
 
 Example action mapping:
 
@@ -232,7 +233,7 @@ information and content of uploaded file. Your action 
should implement the inter
 
 @Override
 public void withUploadedFiles(ListUploadedFile uploadedFiles) {
-if (!uploadedFiles.isEmpty()  
0) {
+if (!uploadedFiles.isEmpty()) {
   this.uploadedFile = uploadedFiles.get(0);
   this.fileName = uploadedFile.getName();
   this.contentType = uploadedFile.getContentType();



(struts-site) branch feature/WW-5371-modern-upload updated (0e928cf9a -> 22ec7b89c)

2024-01-11 Thread lukaszlenart
This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a change to branch feature/WW-5371-modern-upload
in repository https://gitbox.apache.org/repos/asf/struts-site.git


from 0e928cf9a WW-5371 Documents new Action File Upload Interceptor
 new 5f6ecdf1d WW-5371 Fixes example code
 new 22ec7b89c WW-5371 Addresses a typo and rephrases it

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 source/core-developers/action-file-upload-interceptor.md | 2 +-
 source/core-developers/file-upload.md| 7 ---
 2 files changed, 5 insertions(+), 4 deletions(-)



(struts-site) 01/02: WW-5371 Fixes example code

2024-01-11 Thread lukaszlenart
This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch feature/WW-5371-modern-upload
in repository https://gitbox.apache.org/repos/asf/struts-site.git

commit 5f6ecdf1d9ca37e5ef881dd5fe054344e330733c
Author: Lukasz Lenart 
AuthorDate: Thu Jan 11 09:14:03 2024 +0100

WW-5371 Fixes example code
---
 source/core-developers/action-file-upload-interceptor.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/core-developers/action-file-upload-interceptor.md 
b/source/core-developers/action-file-upload-interceptor.md
index 9feeb4ccb..6019347ef 100644
--- a/source/core-developers/action-file-upload-interceptor.md
+++ b/source/core-developers/action-file-upload-interceptor.md
@@ -82,7 +82,7 @@ public class UploadAction extends ActionSupport implements 
UploadedFilesAware {
 
@Override
public void withUploadedFiles(List uploadedFiles) {
-  if (!uploadedFiles.isEmpty() > 0) {
+  if (!uploadedFiles.isEmpty()) {
  this.uploadedFile = uploadedFiles.get(0);
  this.fileName = uploadedFile.getName();
  this.contentType = uploadedFile.getContentType();



(struts-site) 02/02: WW-5371 Addresses a typo and rephrases it

2024-01-11 Thread lukaszlenart
This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch feature/WW-5371-modern-upload
in repository https://gitbox.apache.org/repos/asf/struts-site.git

commit 22ec7b89c485989cd590ee86e795ffaaf0c280f1
Author: Lukasz Lenart 
AuthorDate: Thu Jan 11 09:14:24 2024 +0100

WW-5371 Addresses a typo and rephrases it
---
 source/core-developers/file-upload.md | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/source/core-developers/file-upload.md 
b/source/core-developers/file-upload.md
index 60001313f..d36031185 100644
--- a/source/core-developers/file-upload.md
+++ b/source/core-developers/file-upload.md
@@ -29,8 +29,9 @@ The library is included in a base Struts 2 distribution.
 ## Basic Usage
 
 The `org.apache.struts2.interceptor.FileUploadInterceptor` and 
`org.apache.struts2.interceptor.ActionFileUploadInterceptor`
-classes is included as part of the `defaultStack`. As long as  the required 
libraries are added to your project you will be able 
-to take advantage of the Struts 2 file upload capability. Configure an Action 
mapping for your Action class as you typically would.
+interceptors are included as part of the `defaultStack` and named 
appropriately: `fileUpload` and `actionFileUpload`. 
+As long as the required libraries are added to your project you will be able 
to take advantage of the Struts 2 file upload 
+capability. Configure an Action mapping for your Action class as you typically 
would.
 
 ### Example action mapping:
 
@@ -68,7 +69,7 @@ public class UploadAction extends ActionSupport implements 
UploadedFilesAware {
 
 @Override
 public void withUploadedFiles(List uploadedFiles) {
-if (!uploadedFiles.isEmpty() > 0) {
+if (!uploadedFiles.isEmpty()) {
   this.uploadedFile = uploadedFiles.get(0);
   this.fileName = uploadedFile.getName();
   this.contentType = uploadedFile.getContentType();