Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9259463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:39:51+00:00 2026-06-18T12:39:51+00:00

I am using html5 validation for my form in jsp page. I have given

  • 0

I am using html5 validation for my form in jsp page. I have given novalidate in form. When i click on submit button of that form it should validate the form now and display all validation in one label which was hidden before.How can i get these in jsp?
This is my form code.

<form action="#join1_form" method="POST">
  <div>
    <input type="text" name="firstname" id="firstname" value="" required placeholder="First Name" pattern="\w+" />
    <input type="text" name="lastname" id="lastname" value="" required placeholder="Last Name" pattern="\w+" />
  </div>
  <div>
    <input type="email" name="email" placeholder="Your Email" id="email" value="" required />
  </div>
  <div>
    <input name="password" id="password" type="password" required placeholder="New Password" pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z])\w{6,}" name="password" onchange="this.setCustomValidity(this.validity.patternMismatch ? 'Password must contain at least 6 characters, including UPPER/lowercase and numbers' : '');
if(this.checkValidity()) form.cpassword.pattern = this.value;">
  </div>
  <div>
    <input name="cpassword" id="cpassword" type="password" placeholder="Re-enter Password" required pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z])\w{6,}" name="cpassword" onchange="this.setCustomValidity(this.validity.patternMismatch ? 'Please enter the same Password as above' : '');">
  </div>
  <div>
    <input type="label" hidden value="">
  </div>
  <input type="submit" value="Next">
</form>

I want to display all the validation notes after submitting the submit button.These validations should displaye in textfield which is given hidden here.how can i do that?

this is my code for not repeating the emailID. where should i put this in above form?How to display its validation in the textfield which is given hidden above?

<%
Connection conn = null;
PreparedStatement ps=null;
ResultSet rs = null;
Class.forName("com.mysql.jdbc.Driver").newInstance();
conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root", "");
String email1=request.getParameter("lemail");
try{
  String q="SELECT * FROM userdetails where email=?";
  ps=conn.prepareStatement(q);
  ps.setString(1,email1);
  rs=ps.executeQuery();
  if(rs.next())
  {
    //what to do here?
  }
  else
  {
    //what to do here?
  }
}
catch(Exception e)
{
  e.printStackTrace();
}
try{
  if(ps!=null){
    ps.close();
  }
  if(rs!=null){
    rs.close();
  }
  if(conn!=null){
    conn.close();
  }
}
catch(Exception e)
{
  e.printStackTrace();
}
%>     
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T12:39:52+00:00Added an answer on June 18, 2026 at 12:39 pm
    <html:form action="storenotes" onsubmit="return demo()">
    

    call demo() function in your JavaScript
    and submit form by
    return true
    or
    return false

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form which am using html5 to validate for email and required
I am building a form using HTML5 form validation. I have the CSS classes
I am using form validation plugin as well as html5 attribute=recquired with input type=button
I have to build a registration form using asp.net mvc 3 jquery validate. That
I am using the Webshims library for polyfilling the validation of a HTML5 form.
Currently I have a aspx page that is defined as: <%Using Html.BeginForm(SaveNotifications, Notifications, FormMethod.Post,
I Have done a login form validation using jquery, But Thing is error message
I am using the ubiquitous jquery validate plugin for form validation. It supports using
I have a form that use unobtrusive validation. Recently I have changed text area
I am using HTML5 validation and jQuery for ajax and other functionality. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.