seshendrakrishnan.t
job portal
1 Answer(s)      4 years and 10 months ago
Posted in : Java Beginners

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.









Related Pages:
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
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 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 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
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
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
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
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
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
FreeLance Writing JOb
FreeLance Writing JOb       Position Vacant: FreeLance Writing JOb  Job Description... is for writing jobs tips. If you can write good tips for job then this job
business analyst job responsibilities in IT sector
business analyst job responsibilities in IT sector  What are the business analyst job responsibilities in IT Sector?   A Business Analyst... and their integration with technology. The basic Job Responsibilities of a Business
job submission in cloud computing using gui representation
job submission in cloud computing using gui representation  job submission in grid computing using gui representation
Project Manager Job
Project Manager Job       This Project Manager Job is actually a very high paying Job for the software engineers. We are looking for Project Managers
Job scheduling with Quartz - Java Server Faces Questions
Job scheduling with Quartz   I have an JSF application deployed... to database. It works fine but when the Quartz scheduler fires a job it accquires... while initialization or while calling the job.  Hi,How you
want to get job on java - Java Beginners
want to get job on java  want to get job on java what should be prepared.  To know java quickly. Just click the following links:http://www.roseindia.net/java/new-to-java.shtmlhttp://www.roseindia.net/java/java
running the job scheduling using quartz - IDE Questions
running the job scheduling using quartz  I am using netbeans IDE and I am planing use job scheduling I have downloaded all the required jar files and I have write the code to run a separate thread continuously along with the main
Download Quartz Job Scheduler
Download Quartz Job Scheduler       In this section we will download Quartz Job Scheduler from... in the eclipse integrated development environment. Downloading Quartz Job Scheduler
Fresher Job
Fresher Job       RoseIndia is Fastest Growing IT Online Training Company Specialized in Java... and examples. Job Description We are looking for fresh java developers/technical writers
Fancy Box plug-in for text, portal & swf file
Fancy Box plug-in for text, portal & swf file In this section, you will learn how to display text, portal & swf file inside fancy box by clicking... click on any link like text, portal & swf file, the output will be open
Portal Development Services,Portal Development Service
Portal Development Services Portal Development Services and Solutions in India... and at anytime. Rose India delivers integrated Portal solutions.... Rose India provides the following website and web portal development
Avail Cheap india Travel Packages on Travel Portal Mandakinihotels.com. www.mansakinihotels.com
Avail Cheap india Travel Packages on Travel Portal Mandakinihotels.com. www.mansakinihotels.com  India is one of the most beautiful locations in the world; a land apart. India is a colorful, exciting and captivating place. Travel
Keep Your Current Job While You Seek a New One
Keep Your Current Job While You Seek a New One  ... you interview for a new job while you are in a job. You have an edge over others... to accept this new job. However managing this can be pretty risky. You need to put
Don?t you think you are overqualified for this job?
Don’t you think you are overqualified for this job... be worried that you will leave the job once you find something that matches your... that this job is only a stop-gap arrangement for you till you find something better
Sales Marketing Job
Sales Marketing Job       Position Vacant: Business Development Executives Company Name..., Fashion accessories etc. Job Description: To Market Imported Parisonz products
Content Writing Job
Content Writing Job       In the field of Content writing it is very important.... Exceptional English writing skills required. Job Description The candidate should
Content Development Job
Content Development Job       Company Profile: We are one of the well-known software development... with us.  Designation: Content Writer Job Description: Candidate
Course Content Development Job
Course Content Development Job       Company Profile: We are one of the well-known.... Designation: Course content development Job Description: Candidate will be responsible

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.