I would like to know if it is possible to make a href in a jsp page referencing to a file in the server where de web app is deploy.
Something like that:
Thanks, best regards.
Tim Moores wrote:That's easy to try, isn't it?
JSP is just a way of generating HTML, so this is really a question about HTML - I'll add the question to that forum.
Sorry I didnt make clearly myself.
The code Ive already written, didnt work. What I want to know is if Im missing something in the href.
Tim Moores wrote:I see. What does "didn't work" mean, exactly - what happens? Any messages in the browser console?
No errors, but It doesn't show neither a document.
Do you know if does it possible to access a remote doc this way? Thats the question!
Afer that, we will check the errors if there will be any.
Jorge Bartolomé wrote:
I doubt any current browsers will support credentials in the URL - regardless of the scheme. Most likely, you will be prompted for a username and password.
Try putting ftp://user:pass@ipServerMachine/home/stat/docs/MyDoc.doc in the address bar and see what happens.