Greg Huber created WW-5396:
------------------------------
Summary: Javatemplates s:file shows server/file location
Key: WW-5396
URL: https://issues.apache.org/jira/browse/WW-5396
Project: Struts 2
Issue Type: Bug
Components: Plugin - Java Templates
Affects Versions: 6.3.0
Reporter: Greg Huber
After a file upload with the s:file tag it gives details of the webapp location
in the value attribute.
<s:file name="uploadedFiles" multiple="multiple" />
......value="/someplace/Tomcat/apache-tomcat-9.0.85/work/Catalina/localhost/ROOT##/upload_52c5bcff_6363_4414_b23e_fe49bb3f3af7_00000462.tmp"
.....
If I look at file.ftl there is no value being set for the s:file tag, so the
preset value has been removed. ie
<#if parameters.nameValue??>
value="<@s.property value="parameters.nameValue"/>"<#rt/>
</#if>
In the javatemplates plugin and it does set the value, and gets it from
addIfExists("value", params.get("nameValue"))
which has the server path details.
Possibly the file.flt was modified at some point, and the java templates
version was not.
I guess we should make these match and remove the value on the javatemplates?
Update the docs also.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)