Results 1 to 4 of 4
  1. #1
    ak88 is offline Member
    Join Date
    Jul 2009
    Posts
    17
    Rep Power
    0

    Default JSP Registration Form error

    Hi friends,

    I am trying to develop a project using JSP. I need to give registration form. I am able to get the data from the register.jsp file which has the form and enter it in the database and display success message or error message in confirm.jsp.

    I just want to know how to display the error message in the register.jsp file itself without informing it by alert as i am going to handle many errors.

    I just want how to display the error message after the textbox as it happens in the registration form the gmail. There will be no space between two text boxes but after submitting if any error occurs an message will be displayed.

    Help me solving this,

    Thanks in advance

  2. #2
    serjant's Avatar
    serjant is offline Senior Member
    Join Date
    Jun 2008
    Location
    Ukraine,Zaporozhye
    Posts
    487
    Rep Power
    7

    Default

    So then read about Spring MVC technology and how it handles with the forms processing, it has SipleFormController which supports with the validator, the form controler redirects you again to your page with the errors which gives validator of they actually are

  3. #3
    jason.3dmagic is offline Member
    Join Date
    Oct 2009
    Posts
    30
    Rep Power
    0

    Question

    are you using any design pattern or simple jsp, servlet code??

  4. #4
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    842
    Rep Power
    6

    Default

    u can go for ajax.without waiting for the page submission on going out of one particular text box to another itself it will tell the problem wihout stopping the user by unnecessary alerts ..
    Ramya:cool:

Similar Threads

  1. help in registration
    By katrinax_caren02 in forum JDBC
    Replies: 1
    Last Post: 09-27-2009, 03:46 PM
  2. Registration Page Using JSP with Oracle as backend
    By ganeshnatarajan in forum New To Java
    Replies: 1
    Last Post: 09-17-2008, 01:27 PM
  3. Duplicate entry in registration form!!!
    By anki1234 in forum Advanced Java
    Replies: 1
    Last Post: 01-04-2008, 08:15 PM
  4. Registration Servlet
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-25-2007, 11:22 AM

Tags for this Thread

Posting Permissions

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