Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.
Reply With Quote
  #2 (permalink)  
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
Reply With Quote
  #3 (permalink)  
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.
Reply With Quote
  #4 (permalink)  
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:02 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.