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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:29:00+00:00 2026-05-27T02:29:00+00:00

I have a <form:options> in my jsp for which I have defined the path

  • 0

I have a <form:options> in my jsp for which I have defined the path attribute. It looks like this

<form:select id="drpDwn" path="usrNm" onchange="getUserNames()">

My Controller method signature looks like this, I am just calling my service method to populate the user names

@RequestMapping(value="/usrForm", method = RequestMethod.GET, headers="Accept=application/json")
  public @ResponseBody JSONArray getUserNames(@RequestParam("userId") Integer userId, OutputStream opStream){
           return usrService.getUserNames(userId, opStream);
}

When I am submitting the page I am getting the error

Neither BindingResult nor plain target object for bean name 'usrNm' available as request attribute

I looked up the forum and found that I have to define the Model Attribute , but I have not understood the root cause of this issue.

Can anybody please list it down , and explain that what is it exactly that Spring is looking for

  • 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-27T02:29:01+00:00Added an answer on May 27, 2026 at 2:29 am

    the form expects a bean called usrNm. Whichever controller directs to the page with the form should set that bean.

    The controller you show is for processing the form (I assume), however it is the code that returns the view with the form on that is causing the error.

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

Sidebar

Related Questions

I have this html form which has options: <tr> <td width=30 height=35><font size=3>*List:</td> <td
I have html in my form that looks like this. First, is this code
I have a select form element with 5 options. If option 2 is selected
I have this form: <form name=customize> Only show results within <select name=distance id=slct_distance> <option>25</option>
this is my view for /weather: JSP FILE .... <form method=post action=/spring/krams/show/city> <select name=city>
I have a form and I want to add a select location option. How
i have following filteringselect: <select name=v dojoType=dijit.form.FilteringSelect valueList=v id=v value=0><option value=></option><option value=0>0-test</option><option value=1>1-test2/option><option value=2>2-test3</option><option
I have dropdown lists in two forms in a single .jsp. I would like
I have this Controller : @Controller @RequestMapping(/path/*) public class MyController { @RequestMapping(value = /,
I have a html form with action attribute pointing to struts action Here is

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.