The thing I see missing from your generated code is quote marks around the second operand of the string addition.
var String dataFile = ".\\temp\\" + "35E2FF995DC8809DA6124A692DF8FF76.3dcb0dc7e1f939e96f2fa8569aba741d_SASServer1_1.csv";
Java runs on the server.
In general this will not be the same machine. A file that exists on the server will not be on the client and vice versa.
The standard way to get a file from client to server is to use the HTML file input component on the page, which requires user interaction to populate.
posted 2 years ago
Thanks Stefan that was the problem along with
what is the best way to pass server to client side variables i did quite understand what BB was alluding too.
r merritt wrote:what is the best way to pass server to client side variables i did quite understand what BB was alluding too.
Java scriptlets in JSP have been obsolete since 2001 when JSP 2 was introduced. You should be using the JSTL and EL in your JSP pages rather than obsolete scriptlets.
With regards to "passing" data from server to client -- you don't really do any kind of "passing". Rather, as you have seen, you write the values into the generated HTML via the JSP template (that is, after all, what a JSP page is).
If the concept of JSP as a template is unclear, please read this article to understand how JSP operates.