[ 
https://issues.apache.org/jira/browse/WW-5396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart resolved WW-5396.
-------------------------------
    Resolution: Fixed

> 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
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> 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)

Reply via email to