There are 5 main parts to a proper URL link and the link is usually in the following format: http://<host>:<port>/<path>?<searchpart>
, but how to implement it into validation? I am just learning for my class and I can't seem to figure out, please be kind to explain
Asked
Active
Viewed 36 times
0

BalusC
- 1,082,665
- 372
- 3,610
- 3,555

Neila Kurgumbayeva
- 11
- 1
-
I am assuming you are passing url as input to a field in JSF. If that's the case then verify it on your backend java class if not valid render a error message – Nitin Singhal Mar 21 '21 at 05:02
-
And see https://stackoverflow.com/questions/6047866/how-to-perform-validation-in-jsf-how-to-create-a-custom-validator-in-jsf – Jasper de Vries Mar 21 '21 at 08:41
-
Write a custom JSF validator that will verify that the input is a proper http link (url). Show the code. – Neila Kurgumbayeva Mar 21 '21 at 21:21