java 6 - How to access local system files in jsp with hyperlink -


i developed web application using struts 1.2 , need access local files((c:\testing) in jsp link format.when user clicks on file name automatically opens(no download option).file can of type(pdf,excel,.doc...) tried

  • "><%=filename%>
  • ,
  • "><%=filename%>
  • none of them worked..any kind of appreciated. thanks

    even if html ended correctly formatted link "c:\testing" remote user's browser interpret pointing their local c drive (if have one).

    instead need implement file download servlet:

    implementing simple file download servlet

    and in jsp insert link servlet.


    Comments

    Popular posts from this blog

    html - How to style widget with post count different than without post count -

    How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

    javascript - storing input from prompt in array and displaying the array -