Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners User form in JSP
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


mohanraj
User form in JSP
0 Answer(s)      2 years and 8 months ago
Posted in : Java Beginners


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript">
function"WebContent/user.jsp" formValidator()
{
    var a=document.f1.First_name.value;
    var b=document.f1.password.value;
    if(isNumeric(a, "Please enter only Alphabet for your Product Name"))
    {
        var numericExpression = /^[0-9]+$/;
        if(a.value.match(numericExpression)){
            return true;
        }else{
            alert(helperMsg);
            return false;
        }}
    if(a==null||a=="")
    {
        alert("first name must be filled out");
        return false;
    }

    if(b==null||b=="")
    {
        alert("Quantity must be filled out");
        return false;
    }
}
function isNumeric(elem, helperMsg){
    var numericExpression = /^[0-9]+$/;
    if(elem.value.match(numericExpression)){
        return true;
    }else{
        alert(helperMsg);
        return false;
    }
}


</script>
<title>Insert title here</title>
</head>
<body>
<table align="center">



<h1> Registration Form </h1> 
<br>

<form name="f1" method="post" onsubmit='return formValidator()' action="Login">

<tr><td> First Name: </td><td><input type="text" name="First_name" maxlength="20"></td></tr>

<tr><td> Password: </td><td><input type="password" name="password" maxlength="20"></td></tr>
<td><input type="submit" value="submit"></input></td>
<td><input type="reset" value="reset"></input></td>
</form>
</table>
</body>
</html>

Advertisement
View Answers

Related Tutorials/Questions & Answers:
User Registration Form Using JSP(JspBeans)
User Registration Form Using JSP(JspBeans)  ... of user registration form using jsp. One of the basic programming tactics...;html> <body > <form action="/examples/jsp/proces.jsp
userregistration code -- http://www.roseindia.net/jsp/user-registration-form-using-jsp.shtml
userregistration code -- http://www.roseindia.net/jsp/user-registration-form-using-jsp.shtml  While running this application on netbeans7.0 , i am getting the following error: message /userregister/ description The requested
Advertisements
User Registration Form Using JSP(JspBeans) after that how i can insert in database
User Registration Form Using JSP(JspBeans) after that how i can insert in database   User Registration Form Using JSP(JspBeans) after that how i can insert in database
user Registration form using bean
user Registration form using bean   In this code,password and confirm password does n't matches.Every time an error occured if i entered same string for both.Please help to sort my problem
jsp form
jsp form  hi sir, one got one got in jsp form after entering the data into the form the data is not saving in the database i will send you code of two forms if dnt understand my problem
how to create a user registration form in php
how to create a user registration form in php  how to create a user registration form in php
Developing User Registration Form
how to develop the User Registration Form and related JSP files. This User... Developing User Registration Form   ... necessary to develop the User Registration Form for our Struts, Hibernate and Spring
jsp form
jsp form  hai... GoodEvening I have one doubt on jsp.please wil u clarify it. how to move one jsp form to another jsp form with out using forward...)form1.jsp: <html> <form method="post" action="form2.jsp"> <table>
jsp form
jsp form  hi i have one excuted jsp form.and in that the data should be dispaly on another jsp form.please help me thanks in advance   Hi Friend, Try this: 1)form1.jsp: <html> <form method="post" action
user profile - JSP-Servlet
user profile  how to create a user profile for each user in the database and enable the user to modify it using jsp
Search page form in jsp
Search page form in jsp  search form in jsp   Please go through the following links: http://www.roseindia.net/jsp/user-search.shtml http://www.roseindia.net/servlets/search.shtml
search form in jsp
search form in jsp  search page in jsp   Please go through the following links: http://www.roseindia.net/jsp/user-search.shtml http://www.roseindia.net/servlets/search.shtml
JSP User-Agent
JSP User-Agent          JSP User-Agent is used to display... illustrate an example from 'JSP User-Agent'. To understand and elaborate the example we
JSP code for registration form
JSP code for registration form  Haiiii can u please tell me how to encrypt password field in registration form and to compare both password and confirm password fields using jsp
For my website,As soon as the user is able to succesfully login, a Testimonial form appears.
For my website,As soon as the user is able to succesfully login, a Testimonial form appears.  For my website,As soon as the user is able to succesfully login, a Testimonial FORM appears in the same page. How to do. Please Help
Tracking User's Session using Hidden Form Fields
Tracking User's Session using Hidden Form Fields In this Section, We will discuss about tracking user's session using Hidden form field. Hidden Form Field is used to maintain the session. It is one of the method to handle
user defined function inside a jsp
user defined function inside a jsp  how to write a user defined function inside a jsp page
disable the form - JSP-Servlet
Ajax. after response is coming to the jsp page,particular form button... Multiple form are created in Jsp. Servlet is used to insert the data. Ajax is used... wrote jsp page in that 8 forms are there.all forms are same but the input values
login form - JSP-Servlet
login form  Q no.1:- Creat a login form in servlets?  Hi Friend, Try the following code: import java.io.*; import javax.servlet....(""); } } For more information,visit the following link: http://www.roseindia.net/jsp
Develop user registration form
User Registration Form in JSP       In this example we are going to work with a user registration... user registration jsp page.  In this example we will create a simple
convert this html form to jsp
convert this html form to jsp  <html> <head> <script...;/tr> <form name="VillageDetailsForm" action="AddVillage.jsp" method... Village Registration --> </body></html>   JSP page
html form - JSP-Servlet
html form  how to retrieve database value in dropdown list box placed in html form  Hi friend, Visit for more information. http://www.roseindia.net/jsp/ Thanks
creation of a form - JSP-Servlet
creation of a form  how to create a question paper using JSP code  Hi Friend, We have taken radiobuttons in our application, you can... visit the following link: http://www.roseindia.net/jsp/online-quiz
Calling In JavaScript Functions from HTML Form To Validate User Entered Data
Calling In JavaScript Functions from HTML Form To Validate User Entered Data  Hello, I have been working for days on my web Form assignment and editing my html to call my functions to validate the user entered data
login form validation - JSP-Servlet
login form validation  hi, how to validate the login form that contains user name and password using post method . the validation should not allow user to login in the address bar thanks regards, anand
creating a feedback form - JSP-Servlet
and submitting the form. so questions are coming from the jsp page and also... i am refining this problem as follows: i am creating a feedback form of a college. this feedback form will ask some question. now depending upon those
multipart/form-data - JSP-Servlet
multipart/form-data  When we are uploading a file we are using the encoded type of form of type multipart/form-data. When we are using... with the example available in http://www.roseindia.net/jsp/file_upload/Sinle
JSP:HTML Form in-place Editing - JSP-Servlet
JSP:HTML Form in-place Editing  I have an HTML form (form #1) which... in the database) after which I want to re-populate the form so that if the user... function that will highlight the row(s) that the user will select(also working fine
Get form value in same page - JSP-Servlet
friend, For solving the problem visit to : http://roseindia.net/jsp/user...Get form value in same page  Hello friends, Can we get a form field value in the same to be processed in java coding
Admin and User Login JSP - JSP-Servlet
Admin and User Login JSP  Respected Sir, I am R.Ragavendran.. i need a JSP based program immediately.. In the home page, there must be a login... be present along with the Emp_id and name.. But when user has individually logged
jsp- adding user defined functions to a jsp
jsp- adding user defined functions to a jsp  Trying to write the function as below but getting errors. Can you please identify the cause of error and how to correct it. <% public String retrieveAndClearErrorMessage
 

 

 

DMCA.com