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
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
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
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
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
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
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
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
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
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
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
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
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
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
sending email code - JSP-Servlet
sending email code  How To Send Emails using jsp  Hi friend, I am sending you a link. This link will help you. Please visit for more information. http://www.roseindia.net/mail/sending-an-email
jQuery email validation
jQuery Email Validation : jQuery "required email" is the method to validate or check email  if the element is empty (text input) or  wrong email type entered .We can validate our email in another type by writing
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
email
email  how do i code for making clicking a send button sends a email
email
email   hi I am using 1and1 server. Using this server i am sending a mail using java program . But it is running some problem occur " Cannot send email. javax.mail.SendFailedException: Invalid Addresses; nested exception
VALIDATE
VALIDATE  Hi, i am working with struts 1.3 version in this i wrote one application inthis application by using jsp file to crate a form by using that form i can enter the data it will connect to business logic and the inserted
Tutorials   
Java Spring Hibernate Struts Training How to retrieve and display image from database in Java? How to retrieve image from mysql database in JSP? How to store and retrieve image from database in JSP? How to retrieve blob image from database in JSP? How to retrieve image from database using jsp and servlet? Retrieve image from database using servlet and display in JSP why do not required application restart after jsp changes? How to use contentType Attribute in JSP? How to connect to MySQL in JSP? JSP Comment Types with example How to use ajax in jsp? How to access the database from JSP? how to show image as a link which path coming from database jsp netbeans javascript Logos on mail inbox. I want to update the multiple values of database depending on checkbox..? Please help me out.. jsp 18/04/2013 JSTL how to access element added via javascript dynamically using jsp code Electronic spreadsheets are useful in situation An E-mail protocol for storage JSP JSP JSP jsp servlets Exception: com.mysql.jdbc.Driver display data from database on selecting option of dropdownlist display data from database on selecting option of dropdownlist display data from database on selecting option of dropdownlist display data from database on selecting option of dropdownlist Jsp Query run command prompt from jsp program question for c++ please help me how to set up Netbeans for JSP 3 dropdown list from the database using JSP autocompletion in textfield fetching from database in jsp openning the pdf or doc file in same jsp EXT JS tt need coding JSp session time out how to display values from database into table using jsp how to set the class path variable in tomcat ? need help please online examination system mini project problem in writing coding. Please help me. How to read the body content of custom tag? need help...................please please help me

Ads

 
Advertisement null

Ads