I have URL entered by users.
User can enter URI. [relative URI]
How can I validate that relative URI ?
EX: For absolute URI https://stackoverflow.com/questions/ask.
User can enter “questions/ask”.
Is there any ways read web.xml to validate uri.[Java web app]
if you can verify whether the address actually exists, you can use:
and see whether status 200 will be returned.
new URI(uri)