Results 1 to 3 of 3
  1. #1
    Vooda is offline Member
    Join Date
    Dec 2011
    Posts
    4
    Rep Power
    0

    Default Check input data from a .jsp form

    Hey,

    I have created a pretty standard registration form in a jsp, but I'm not sure of the best way to check the data that has been entered. I'm want the program to check as the user inputs the values. So if the two password inputs do not match, for example, a string would be shown to alert the user without them having to submit the form.

    I know this is possible with JavaScript, but what would be the best way to do this with Java?

    Thanks in advance.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,949
    Rep Power
    19

    Default Re: Check input data from a .jsp form

    If you want to do it before the form is submitted then it can't be done in Java, since your Java resides on the server.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    Vooda is offline Member
    Join Date
    Dec 2011
    Posts
    4
    Rep Power
    0

    Default Re: Check input data from a .jsp form

    Ahh! Makes sense, JavaScript it is then. Thanks for the quick reply

Similar Threads

  1. how to retrieve data when i select the input from the form
    By sharanya in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 03-08-2011, 10:39 AM
  2. Replies: 8
    Last Post: 10-03-2010, 09:45 AM
  3. Create a form, input some data and save to file
    By cselic in forum AWT / Swing
    Replies: 5
    Last Post: 05-07-2010, 12:28 PM
  4. Replies: 10
    Last Post: 08-12-2009, 04:02 PM
  5. enctype=multipart/form-data with form data in struts
    By vk_satheesh in forum New To Java
    Replies: 0
    Last Post: 09-19-2008, 12:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •