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 7508977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:46:52+00:00 2026-05-29T22:46:52+00:00

My registration is using Spring forms and validates the data after submit, the form:errors

  • 0

My registration is using Spring forms and validates the data after submit, the form:errors will be printed out if there are errors. I need to scroll the page down to the first form:error so the user hasn’t to search for the error, is there a way to do that?

cheers

  • 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-05-29T22:46:53+00:00Added an answer on May 29, 2026 at 10:46 pm

    I haven’t tried any of them, but I can think of two possible ways:

    • With Javascript. Spans generated by < form:errors /> have a class (I don’t remember at the moment) or you can force on using cssClass attribute. Would be very easy using this jQuery plugin to scroll to the first one.

    • Without Javascript. This will be a lot more difficult and I’m not sure it will work:

      • In your controller, instead of returning a direct view you must do a redirect to something like /myForm#error.
      • In order to don’t lose your model, you must use FlashMap attributes.
      • “Subclass” < form:errors /> tag. It must have the same behavior but it has to include an anchor named error on the first error of the page.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Django-Registration and the form just has 3 fields (Username, Email, Password, and
I'm using symfony with doctrine and I make a registration form. Email field is
I have a registration form for registering personal attributes. I am using both included
hey all i want to make an auto login after successful registration in spring
here is some code that I plan on using in a registration form for
i'm thinking if i really need a service layer. I'm using spring + hibernate
I am creating a registration form using PHP and jquery with ajax. Each field
I have to build a registration form using asp.net mvc 3 jquery validate. That
I am developing a registration web app using Struts2 and need some guidance. Background:
I am working on a registration form, where i am providing validation(spring) for input

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.