Validate email id in jsp

Ads

 
 

Share on Google+Share on Google+

neelam
Validate email id in jsp
1 Answer(s)      9 years ago
Posted in : JSP-Interview Questions

Hi Please Suggest me how to validate email id in JSP(Java Server Faces)?

Ads
View Answers

April 16, 2008 at 7:39 PM


Hi friend,

<html>
<title>Email Validation form</title>
<head>
<script language="JavaScript">

function checkemail(theForm){
var theForm =
/^(([^()[\]\\.,;:\s@\"]+(\.[^()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
if(!filter.test(str)) {
alert("invalid Email id");
return false;
}
else{
return true;
}
}
function validateForm(theForm){
if(theForm.email.value==""){
//Please enter accountholder
alert("Enter the E-mail Id.");
theForm.email.focus();
return false;
}


return true;
}
</script>
</head>
<body>
<H1>E-mail validation form</H1>
<form method="POST" action="" onsubmit="return validateForm(this);">

<table border="1" ALIGN="LEFT" cellspacing="0" cellpadding="0">

<tr>
<td>
<b>E-mail:</b>
<input type="text" name="email" size="40">
</td>
</tr>

<tr>
<td>
<input type="submit" name="submit" value="Submit">
<input type="reset" value="Reset" name="reset">
</td>
</tr>
</table>

</form>
</body>
</html>


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

read for more information.

http://www.roseindia.net/jsp/

Ads









Related Tutorials/Questions & Answers:
Validate email id in jsp - JSP-Interview Questions
Validate email id in jsp  Hi Please Suggest me how to validate email id in JSP(Java Server Faces
Validate Domain of an Email Id - JSP-Servlet
Validate Domain of an Email Id  How to validate the domain name in an Email id before sending a mail for an application using Mail API. ex: [email protected] in the above email id i want to validate whether a.com is present
Advertisements
Validate ID Number
Validate ID Number   How to validate South African ID Number using...   Here is a code that check whether the south African Id is valid...("Enter South African ID: "); String id=input.nextLine
validating email id
validating email id  how to validate the email id ?   <html> <script> function validate(){ var e=document.getElementById...;tr><td>Email </td><td><input type="text" id="email" ><
how to validate the email login
how to validate the email login  // JavaScript Document JOIN US...==""){ alert("Please enter email id!"); document.form.email.focus... Email ID"); return false; } if(!ValidPhone(phone
validate email objective c
validate email objective c  how can i validate email text field in objective c? is there any method that support multiple email address separated by coma.   - (BOOL)validateEmailWithString:(NSString*)email
how to validate national ID number
how to validate national ID number  hey guys, plz send me a code how to vlaidate national ID number using jtextfield. in ID num thers 9 numbers +V.the V letter is included at the end of the numbers. ex:123456789V i don knw how
Email validation is JSP using JavaScript
will show you how to validate email address in you JSP program using JavaScript.... In your JSP program you can use JavaScript to validate the email address... Email validation is JSP using JavaScript
jQuery to validate Email Address
jQuery to validate Email Address     ... that validate the email address  from server and displays on the user browser...;result". You can easily replace PHP with JSP, or ASP program. Steps to develop
JSP Email
JSP Email  Hi, How to send email using JSP? Thanks   Hi, Check this tutorial: Send Email to selected dropdown user Thanks
how to validate e,ail id and phne number in student form
how to validate e,ail id and phne number in student form  how to validate e,ail id and phne number in student form   Hi Friend, Try...="javascript:return validate();"> <table> <tr><td>Email <
how to validate e,ail id and phne number in student form
how to validate e,ail id and phne number in student form  how to validate e,ail id and phne number in student form   Hi Friend, Visit Here Thanks
how to validate e,ail id and phne number in student form
how to validate e,ail id and phne number in student form  how to validate e,ail id and phne number in student form   Hi Friend, Visit Here Thanks
How to validate a form - JSP-Servlet
How to validate a form   Dear Sir, I have a one jsp ,in that i have a 2 forms ///One form1 as follows Id Subject Status... want to validate a form1 i.e in form1 i have a text field for a Id values .If i
Printing username,email Id using session variable.
Printing User Name, Email Id and Address using session variable Using $session() function, we can print user name, email id and address of the user. ...;address"];  echo "Your Email ID is ".$session_email."
jsp email - JSP-Servlet
jsp email  when the user forgets his password how to enable the user to retrieve his password using jsp code
generate Email - JSP-Servlet
generate Email  Hi I need to generate an automated email and need to send it to the client like an confirmation email after registering to my website. I m using jsp code. Please help me out with this issue.  Hi friend
jQuery to validate Email Address Validation
jQuery to validate Email Address   ...; program that validate the email address  from server and displays on the user... the "result". You can easily replace PHP with JSP, or ASP program. Steps
JSP check email exists or not
JSP check email exists or not In this tutorial, you will learn how to check from the database whether entered email-id exists or not. The given code accepts the email id from the user and check whether the given email id already
send HTML Email with jsp and servlet
send HTML Email with jsp and servlet  Can You please show me how to send html Email using JSP and Servlet thank you
Email sending in jsp - JSP-Servlet
Email sending in jsp  Hi, Im trying to send email from my jsp webserver.My webpage is running on Tomcat 5.0 server, and im using jsp coding.Now i've already tried a sample code from google, for sending email to my office 'smtp
Sending an email in JSP
Sending an email in JSP       Sending an email in JSP In this section, you will learn how to send an email in jsp.   Following is a simple JSP page for sending
Getting the last inserted id using jsp
Getting the last inserted id using jsp  Pls how can i retrieve the last inserted id after submitting a form to mysql using jsp
How to validate a form in action class and forward errors to the jsp in struts?
How to validate a form in action class and forward errors to the jsp in struts?  How to validate a form in action class and forward errors to the jsp in struts
how to display the email message in jsp
how to display the email message in jsp  hi every one .. i am new from this industry please help me to display the email message in jsp page please send me sample code
i need the source code to generate id in jsp
i need the source code to generate id in jsp  hai,i need the source code for generate id...which is i need to generate the new id from the maximum... of generate ids each should have some range...plz give the source code in jsp with ms
Validating Emp ID Reply - JSP-Servlet
Validating Emp ID Reply  Respected Sir/Madam, I am Ragavendran.R.. Thanks for your quick response.. Actually I need to check whether Emp ID..... function Validate() { var anum=/(^\d
Email to multiple recipients using jsp
Email to multiple recipients using jsp  Hi sir, Am a doing a project,in that i need to send email to multiple user at a time,the to address should enter manually its not not be written in code using jsp. Regards, Santhosh
Email to multiple recipients using jsp
Email to multiple recipients using jsp  Hi sir, Am a doing a project,in that i need to send email to multiple user at a time,the to address should enter manually its not not be written in code using jsp. Regards, Santhosh
[JSP] How to pass back ID to previous page.
[JSP] How to pass back ID to previous page.  Hi experts, May I ask... a UKM, it linked to ViewProducts.jsp <a href='lihatProduk.jsp?ID_UKM=" + rs.getString("ID_UKM") + "'title='Lihat Produk' class='icon-5 info-tooltip'<
Validate
Validate   hi all..im a beginner java and i need some help from u guys.. Its about validate. My HR request BF = 'brought forward', leave cannot apply date greater than 31/03 of particular year. So, if the user apply the date