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

  • Home
  • SEARCH
  • 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 8484627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:25:54+00:00 2026-06-10T20:25:54+00:00

I have a simple contact form in my spring project, which is meant to

  • 0

I have a simple contact form in my spring project, which is meant to access a backing object, but I get this error

“Neither BindingResult nor plain target object for bean name ‘indexBacking’ available as request attribute”

My form looks like this:

<form:form action="index.htm" enctype="multipart/form-data" method="post" commandName="indexBacking" accept-charset="UTF-8">
    <form:label path="personName">Name</form:label>
    <form:input id="personName" path="personName" autocomplete="false" /><br />
    <form:label path="personEmail">Email</form:label>
    <form:input id="personEmail" path="personEmail" autocomplete="false" /><br />
    <form:label path="personComments">Your Comments</form:label>
    <form:input id="personComments" path="personComments" autocomplete="false" /><br />
    <input type="submit" alt="Submit"/>
</form:form>

Which is meant to access my controller and save the fields “personName”, “personEmail” and “personComments” into my backing object called “indexBacking”.

My controller method that I am trying to access is here:

@RequestMapping(value = PAGE_NAME, method = RequestMethod.POST)
public String handleContactForm(ModelMap map, HttpServletRequest request, @ModelAttribute("indexBacking") IndexBacking bo, BindingResult result) {  
    return MODEL_NAME;
}

But I am not sure hot it links with the backing object. Any ideas what I am doing wrong?

Thanks
Jon

  • 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-10T20:25:55+00:00Added an answer on June 10, 2026 at 8:25 pm

    The problem was very simple, I was just being an idiot. I saw a colleague of mine working on a form and assumed a few of his classes were part of Spring as default. All I had to do was handle the received data at the other end properly (by calling the appropriate methods in the controller) and it worked fine.

    Thanks for your help chaps – credit to @nobeh for pointing me in the right direction.

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

Sidebar

Related Questions

i have made a simple php contact form following this tutorial: http://www.catswhocode.com/blog/how-to-create-a-built-in-contact-form-for-your-wordpress-theme The big
I have a simple contact form which uses jquery to post to a php
I have a simple contact form: <div class=contact-wrapper> <div class=grid_8 contact-form-wrapper> <form id=contactus method=GET
I am new to PHP, but, I have a simple contact form that is
i have developed a simple php contact form, that's working fine, but i am
I have a very simple contact form with fields like this: <label> First Name<em>*</em>
I have a simple contact form with Subject and Message that I want to
i have a simple contact us form and i need to send an email
I am working on a simple contact form written in php and have almost
I have a simple contact form thats throwing up an Notice: Undefined index: e

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.