cancel
Showing results for 
Search instead for 
Did you mean: 

How to validate url in webdynpro application

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

resloved

Former Member
0 Kudos

Hi Rajesh,

Could you please also share with us what is the solution of this problem. It would help others as well.

Regards,

Anagha

Former Member
0 Kudos

Hi,

have a look at this doc http://java.sun.com/developer/JDCTechTips/2003/tt0422.html

Regards

Ayyapparaj

Former Member
0 Kudos

thanks.rsesolved

Former Member
0 Kudos

>

> 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