How to quote the filename when used with JSTL

by Kiran   Last Updated July 12, 2019 05:26 AM

Downloading some files with spaces in file name: Firefox CUTS OFF file name after the first word!

This is my Variable of the File name

<c:set var="nameofthefile" value="My Sample File 23.pdf" />

When i am printing the file as

    inline="false"
   screenWidth="800"
   interpolateImages="false"
   debug="true" 
   fileName="${nameofthefile}"
   pageInsets="56,66,66,66,points"
   enableImageSplit="false">

If the filename has whitespace, it MUST be quoted. Else, it violates the RFC, and Mozilla does not play nice with violators

How can i quote the filename in this case ??

Tags : jsp jstl


Related Questions


Updated July 01, 2015 17:11 PM

Updated August 07, 2015 14:11 PM

Updated July 03, 2017 06:26 AM

Updated September 23, 2017 11:26 AM

Updated October 12, 2017 09:26 AM