job portal

Ads

 
 

Share on Google+Share on Google+

seshendrakrishnan.t
job portal
1 Answer(s)      8 years ago
Posted in : Java Beginners
Ads
View Answers

August 25, 2008 at 1:35 PM


Hi friend,


This is JavaScript validation code.

<html>
<title>registration form in jsp</title>
<head>

<script type="text/javascript">

function checkEmail(email) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email)){
return (true)
}
alert("Invalid email address.Please Enter again.")
return (false);
}

function validateForm(theForm){



if(theForm.username.value==""){

//Please enter username

alert("Please enter User Name.");

theForm.username.focus();

return false;

}



if(theForm.lastname.value==""){

//Please enter lastname

alert("Please enter Last Name.");

theForm.lastname.focus();

return false;

}

if(theForm.email.value==""){
alert("Please enter email!");
theForm.email.focus();
return false;
}
if(!checkEmail(theForm.email.value)){
theForm.email.focus();
return false;
}

if(theForm.position.value==""){

//Please enter position

alert("Please enter Position.");

theForm.position.focus();

return false;

}
if(theForm.salary.value==""){

//Please enter salary

alert("Please enter salary.");

theForm.salary.focus();

return false;

}

return true;
}
</script>
</head>

<body>
<table border="1" width="50%" bgcolor="pink">
<tr>
<td width="100%">
<form method="POST" action="/examples/jsp/AccessValueServlet" onsubmit="return validateForm(this);">

<h2 align="center">Employee registration form</h2>
<table border="1" width="100%">
<tr>
<td width="50%"><b>User Name:</b></td>
<td width="50%"><input type="text" name="username" size="20"/> </td>
</tr>
<tr>
<td width="50%"><b>Last Name:</b></td>
<td width="50%"><input type="text" name="lastname" size="20"/> </td>
</tr>
<tr>
<td width="50%"><b>Email:</b></td>
<td width="50%"><input type="text" name="email" size="20"/> </td>
</tr>
<tr>
<td width="50%"><b>Position:</b></td>
<td width="50%"><input type="text" name="position" size="20"></td>
</tr>
<tr>
<td width="50%"><b>Salary:</b></td>
<td width="50%"><input type="text" name="salary" size="20"></td>
</tr>
</table>
<p><input type="submit" value="Submit" name="submit">
<input type="reset" value="Reset" name="reset"></p>

</form>
</td>
</tr>
</table>
</body>
</html>
---------------------------------

Thanks,

Amardeep.

Ads









Related Tutorials/Questions & Answers:
job portal
job portal  sample jsp program for job portal
job portal - Java Beginners
job portal  1)for creating the job portals which is better?(jsp/html). 2)how we done the validations?give me an example.   Hi friend, This is JavaScript validation code. registration form in jsp
Advertisements
Web sphere Portal Analyst
Web sphere Portal Analyst       Position Vacant: Web sphere Portal Analyst  Job... on Websphere portal server.  You will be working on the large e
job
job  i know siwing,and awt very well,and i also develop project in swing,can u suggest me any online job in swing,or and full time job in swing
What is portal
What is portal  What is portal What is portal and how can i create a portal in Java using components like Java and Java servlet? What are the elements of a portal and how can i create sigle request portal page in Java
Communication Portal
Communication Portal       A communication interface desinged with Web 2.0 technology, mission is to help peolpe communicate easily over a comfortable web interface Read full Description
java job
java job  How to get Java Job very easily
weblogic portal 10.3
weblogic portal 10.3  Hi , Please let me know what are good websites for learning step by step Weblogic Portal 10.3. Thanks Ramanuja
online shopping portal
Portal XYZ.com wants to create an online shopping portal for managing its... first before they do shopping using the shopping portal. However, everyone... listed in the portal. The registered customers, after logging in, are allowed
Online Shopping Portal for xyz.com
Online Shopping Portal for xyz.com  XYZ.com wants to create an online shopping portal for managing its registered customers and their shopping... the shopping portal. However, everyone, whether registered or not, can view
Online Shopping Portal for xyz.com
Online Shopping Portal for xyz.com  XYZ.com wants to create an online shopping portal for managing its registered customers and their shopping... the shopping portal. However, everyone, whether registered or not, can view
Online Shopping Portal
portal for managing its registered customers and their shopping. The customers... portal. However, everyone, whether registered or not, can view the various products along with the prices listed in the portal. The registered customers, after
Online Shopping Portal
portal for managing its registered customers and their shopping. The customers... portal. However, everyone, whether registered or not, can view the various products along with the prices listed in the portal. The registered customers, after
online shoopping portal
portal for managing its registered customers and their shopping. The customers... portal. However, everyone, whether registered or not, can view the various products along with the prices listed in the portal. The registered customers, after
Web Portal - Development process
Web Portal  Could somebody tell us what common tools (and the cheaper ones) are in the market to develop a web portal? Say, if I want to develop a web portal, where people would post their comments and reviews; and others
online shoping portal
online shoping portal  Hello Sir/Madam , I am working on a project online shopping portal in Java , I want to share my screen with my friend to show my selected things , can you help me out?what should i do
Weblogic portal - Framework
Weblogic portal  Hi all, Please let me know what are good websites for learning step by step Weblogic Portal 10.3. Thanks Manoj  Hi Friend, Please visit the following link: http://www.roseindia.net
Open Sourec Portal Server - Security
Open Sourec Portal Server  Hello sir/madam, I'm looking for some PHP/Mysql or Perl/MySQL based well-documented open source portal server which... is "Strengthening of Portal server Security", and i haven't found portal yet
job submission in cloud computing
job submission in cloud computing  job submission in cloud computing
job submission in cloud computing
job submission in cloud computing  job submission in grid computing
Weblogic Portal - JSP-Interview Questions
Weblogic Portal  Hi, Can any please give me the details of 1) Weblogic portal interview questions & answers ? 2) Weblogic portal learning step by step websites? Thanks for your help in advance
job submission in cloud computing
job submission in cloud computing  job submission in grid computing using gui representation
Job scheduling in Java
Job scheduling in Java  Job scheduling in Java In my new Java project, we have to develop a feature of Job scheduling.. for example i have to create... of all please explain me what is job scheduling in Java and how one can use
Main job of cpu
Main job of cpu  What is the Main Job of CPU?   The CPU perform two main task .. 1. It carry out program instructions and also 2. Process the data and information
Quartz Job Scheduler - Subversion
Quartz Job Scheduler  Dear Sir , i am anandaraj working as a programmer , i need the clarification for using the Quartz Job Scheduler . we have... have called the CronTrigger trigger to run on the particular time ... the job
Proficy Portal
Proficy Portal       Proficy Portal Commercial product. Similar to "enterprise-level" business apps. development environments like JD Edwards except that it is built based on interfacing
Quartz Job Scheduler - Subversion
Quartz Job Scheduler  Dear Sir, i have taken that toturial.we are using RAMJob to do our work.while calling the scheduler.start(); , when... firing 2 times . we do not know the reason why its happening . in our Job we
Portal development with BEA Weblogic Workshop - WebSevices
Portal development with BEA Weblogic Workshop  I am developing a portal using BEA weblogic Workshop workbench. We have to use the content management system to store and retrieve files and display it on the portlets
What are job role of Hadoop Developer?
What are job role of Hadoop Developer?  Hi, I am planning to get the the job in Hadoop Development as Hadoop Developer. What are the roles of a Hadoop Developer? Thanks
Portal Development Environment in local machine [Open Source]
Portal Development Environment in local machine [Open Source]  Hello, I am Java with Eclipse and WebSphere Portal using guy. I use them at office... for Eclipse with Weblogic portal'. IDE is very heavy [350 MB zip file] and I need
configuring cron job - JSP-Servlet
configuring cron job  i decided to use cron job in ubuntu to send automatic mail.i programmed one jsp file that file will call a javafile, that javafile will check whether the client registration is going to expire
Tutorials   
Java Spring Hibernate Struts Training What type of programming language is Java? How do beginners learn about Java? ClassNotFoundException HttpRequestInterceptor java.lang.noclassdeffounderror: org/apache/http/httprequest noclassdeffounderror: org/apache/http/client/methods/httpurirequest java.lang.NoClassDefFoundError: org/apache/http/client/HttpClient How do I resolve this Java Class not found exception? httpclient java.lang.NoClassDefFoundError Apache Commons ioutils maven dependency Read/Convert an inputStream to a String What is the meaning of Java Platform? Why Java is a platform independent language? What is the benefits of learning Core Java? Which technology should I learn after Java? What is array in java with example? How to Convert ArrayList to Array? How to substring in Java? How to format number in Java? What is instance variable in Java? How to download MySQL JDBC driver? What is Calendar class in Java? Which is the best Java tutorials for beginners? How to rename a file in Java? How to delete file in Java code? How to get day from date in Java using Calendar? How to get day of week in Java? How to calculate Date Difference in Java? How to compare date in Java? How to declare array in Java? How to calculate average of array in Java? What is Array in Java? write a java program to find the summation of all the integers entered on command line Sum of two numbers using command line arguments in Java How to create and use Array in Java? How to pass command line arguments in Java? How to create Applet Hello World? Appending String efficiently in Java How to append String in Java? How to list even numbers between 1 and 100? How to add BigDecimal in Java? What is Abstraction In Java? Which is best Beginners Java Tutorial? What is java.util package? Create list from array in Java Filter collection in Java 8 What is the best way to filter a Java Collection? Easy way to transform Collection to Array? How to convert Collection to Array in Java? What are Basic Java Language Elements? Advanced Java Tutorials in 2017

Ads

 
Advertisement null

Ads