New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WW-5371] Documents new Action File Upload Interceptor #223
Conversation
Staged site is ready at https://struts.staged.apache.org/ |
|
||
@Override | ||
public void withUploadedFiles(List<UploadedFile> uploadedFiles) { | ||
if (!uploadedFiles.isEmpty() > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think you can drop the > 0
|
||
@Override | ||
public void withUploadedFiles(List<UploadedFile> uploadedFiles) { | ||
if (!uploadedFiles.isEmpty() > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
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. | ||
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
classes **are** included
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rephrased the sentence a bit
Staged site is ready at https://struts.staged.apache.org/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
Refs WW-5371