0

I am workign on a webpage and in that I am querying a DB and getting filepath. I am able to dispaly that path from DB on my page. Now as an enhancement I wanted to add a 'Open' button next to the path being displayed. As the file would be .xml or .xsd so we can use the new window/tab of browser to open the same. I am aware of html codes used to upload a file but don't know the code to open a file. I tried playing with <input type=file> but no luck.

So can anyone help me in this.Any small pointer will be helpful. I am not using Swings so no point of trying JFileChooser

1 Answer 1

1

A file input is for people to upload files.

If you want to let people view files that are on the server, just use a normal link.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.