• Post Reply Bookmark Topic Watch Topic
  • New Topic

Correct Syntax to Display a Network File

 
Steve Dyke
Ranch Hand
Posts: 1722
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to view a network share file from within my web application.

I cannot seem to get the syntax correct. Note it will work when running on local host(port 9080).

 
Stefan Evans
Bartender
Posts: 1826
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Given that it is "working" on your local machine and not on your web application, that would indicate there is a difference between the two environments.

Is the server you are testing on running on Windows, or a flavor of unix?
Do you need to use backslash \ instead of slash / for these network file names?
Does the server have access to that file share?

How does the ViewPrintExcelReportsServlet try and access this file?
Is it just using new File(request.getParameter("p1")) ?
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!