Results 1 to 3 of 3
Thread: Validating email address
- 12-19-2007, 08:54 PM #1
Senior Member
- Join Date
- Nov 2007
- Posts
- 115
- Rep Power
- 0
- 12-20-2007, 09:40 AM #2
Member
- Join Date
- Dec 2007
- Posts
- 3
- Rep Power
- 0
Hi,
You can do the validation in swings same as Javascript using "Regular Expression". In java, you have two classes called "Pattern" and "Matcher". using which you can do this.
Example:-
String str=Regular Expression
String str2="Email Address to be validated"
Pattern p=Pattern.compile(str);
Matcher m=p.matcher(str2);
if(m.find()==true){}
else {}
Post Reply if u have doubts.
- 12-21-2007, 08:42 AM #3
Senior Member
- Join Date
- Nov 2007
- Posts
- 115
- Rep Power
- 0
Similar Threads
-
send email using JMS
By Heather in forum Advanced JavaReplies: 9Last Post: 01-07-2009, 03:04 PM -
Validating email address!
By rameshraj in forum Advanced JavaReplies: 1Last Post: 02-18-2008, 09:39 AM -
validating selection list in struts!
By rameshraj in forum Web FrameworksReplies: 2Last Post: 02-13-2008, 01:21 PM -
validating a string for numbers and letters?
By lockmac in forum New To JavaReplies: 1Last Post: 08-09-2007, 09:17 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks