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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:45:24+00:00 2026-05-22T00:45:24+00:00

How do make Spring access dropdown box values. I am trying to make Spring

  • 0

How do make Spring access dropdown box values.

I am trying to make Spring MVC get the value of one of my dropdowns.

org.apache.jasper.JasperException: An exception occurred processing JSP page /WEB-INF/view/dateRange.jsp at line 28

25: <tr>
26:     <td>
27:         <div align="right">Last Month Of Full Data:</div></td>
28:         <td><form:select path="Lst_mnt">
29:             <option value="1">January</option>
30:             <option value="2">February</option>
31: 

All that I am doing its to get the value into Spring not build the dropdown

  • 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-22T00:45:25+00:00Added an answer on May 22, 2026 at 12:45 am

    First of all, you are not using the <form:select> properly. You have two options:

    • use a simple <select> tag with <option> tags inside, and give it a name the corresponds to the model object field (Lst_mnt in this case, but avoid that underscore)
    • use <form:select> with a Map in which you can fill the keys and values for the select

    Thus you will show the values. Then:

    • If you want to get the selected value – it will be filled in the model object when the form is submitted, so you will have it in your controller method.
    • If you want to manipulate them in the browser – use javascript
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying out Spring MVC 3.0 for the first time and like to make
I'm trying to make this 2-player web game application using Spring MVC. I have
I would like to make a First Access Database Setup Process in my spring
I’m trying to develop a Spring 3 MVC application using the Springsource Tool Suite/Eclipse
I'm trying to make a sample SOAP web service using Spring-WS and JAXB and
I use query string to access my pages. I try to make if anyone
Can I make the spring service classes final? Is there any harm doing that?
We have many Spring web applications to make on a WebLogic server and are
In one of requirement we have to make available certain attributes through out the
I'm using Spring Security in Grails to restrict access to my controllers. I have

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.