• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to open a file/folder directories in firefox browser using JSF2.0 <h:outputLink>.  RSS feed

 
umesh rama
Greenhorn
Posts: 5
Hibernate Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

In our currenr project we have a requirement to open a local/network driver file/folder using JSF 2.0 <h:outputLink> in Firefox browser
please find the below sample code & correct it, how to achieve the above requirment



Thanks in advance :)
 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, JSF is used in a web application, which runs of a web or application server. So the file(s) the app can access should also be of the same server at least, sometime in the web/app server's installation path.

So in your case accessing a local file in D: drive is not possible.
 
umesh rama
Greenhorn
Posts: 5
Hibernate Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Tsang,

the application server instance(weblogic server 12c) is running on logged-in userid in windows machine, basically logged-in user having full permission & access control over the file/folder present in local drive.

 
Anindya Roy
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
find the below sample code & correct it


are you asking for help or have you given an assignment to the forum people ?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!