This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Correct Syntax to Display a Network File

 
Steve Dyke
Ranch Hand
Posts: 1706
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: 1807
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")) ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic