[ https://issues.apache.org/jira/browse/WW-5396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17817254#comment-17817254 ]
Greg Huber edited comment on WW-5396 at 2/14/24 8:52 AM: --------------------------------------------------------- Looking at the docs/tld, seems all that can be done is remove the value entry from the ..../tags/file.html? was (Author: gregh99): Looking at the docs/tld, seems all that can be done is remove the value entry from the /tags/file.html? > 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 > Priority: Minor > Fix For: 6.4.0, 7.0.0 > > > 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 FileHandler.java 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)