on 11-24-2008 10:04 AM
Hi all,
Can anybody explain me how to validate a url in the webdynpro application.In an application I have input filed where the user will enter an url.The url should be validated before submitting.Please explain me how to validate it.
Thanks and Regards,
Rajesh
resloved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
have a look at this doc http://java.sun.com/developer/JDCTechTips/2003/tt0422.html
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> Can anybody explain me how to validate a url in the webdynpro application.In an application I have input filed where the user will enter an url.The url should be validated before submitting.Please explain me how to validate it.
>
Hi,
I am not sure what exactly are you looking for.
A url begins with prefixes "http://" or "https://" or "www." then there is suffix ".com" or will contain ".co." or ".org"
You could bind your input field by a string context variable. When user fills in the url and clicks enter you could get an event handler called. This method should contain the code to verify if a url is valid i.e., satisfies any of the above criteria. If it doesn't, display a messgae to re-enter a valid url and clear the existing value in context variable (input field).
This will solve the problem for checking if the url appears to be a valid url string. But the webpage doesn't exist for that (url is not registered or something) you can't check it this way. So please let know what exactly you want to do with the entered url.
Regards,
Anagha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.