Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 16th, 2003, 07:07 PM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to tysta
Default email validation

Hi,

Can someone show me how to validate an email with jsp.


Thanks

-------------------


http://www.Tysta.com

$4.95 400MB FREE DOMAIN NAME, PERL, PHP AND MORE.
 
Old June 19th, 2003, 08:44 AM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,

Below is the function for email validation.
I got it from the net some time ago...
You can use it for ur implementation right away(ready to use :))

function isAValidEmail( emailField )
{
    var emailregex=/^[\w]+\+?\w*@[\w]+\.[\w.]+\w$/;
    var match=emailField.match( emailregex );

    if ( !match )
    {
       return false;
    }
    else
    {
       return true;
    }
}

Hope this helps
Regards
Nazneen
 
Old June 21st, 2003, 05:58 AM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to tysta
Default

thanks for helping

is that in javascript?



------------------------
http://www.Tysta.com

$4.95 400MB FREE DOMAIN NAME, PERL, PHP AND MORE.
 
Old June 23rd, 2003, 12:43 AM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes it is in javascript you just have to pass the string to the function and ma be u will need changes in the code for implemnting the actions for a true/false conditions.

Quote:
quote:Originally posted by tysta
 Hi,

Can someone show me how to validate an email with jsp.


Thanks

-------------------


http://www.Tysta.com

$4.95 400MB FREE DOMAIN NAME, PERL, PHP AND MORE.




Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple email validation (different format) kumiko Javascript 2 July 22nd, 2008 08:06 AM
email validation function keyvanjan ASP.NET 1.0 and 1.1 Basics 3 August 17th, 2006 05:30 PM
Email validation problem mattastic Javascript How-To 1 May 19th, 2005 01:10 AM
Chapter 15 - EMail Validation studentinpain BOOK: Beginning ASP 3.0 1 March 19th, 2004 07:33 AM
Form validation and email checking visionary Beginning PHP 9 July 15th, 2003 01:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.