Skip to main content

All Questions

3 votes
1 answer
2k views

Make Spring form:select searchable by two parameters

I have a drop-down menu (Product Type): Generated by the Spring MVC code (Google MDL fluff removed) <form:select path="productType" required="required"> <form:option value="" label="" /&...
ryvantage's user avatar
  • 13.5k
2 votes
1 answer
483 views

MVC: Value in dropdown menu doesn't set to selected value - remains 0

This is a spring Boot application that uses thymeleaf template manager. It has a simple form with dropdown menu. Options are populated from database, both their names (or ids) can be displayed ...
BanAnanas's user avatar
  • 522
0 votes
1 answer
57 views

Spring <form:select> doesn't print anything

I am trying to print simple list values to the select box using spring controller. It successfully returns all values by using ${test} but while I am trying this it not works. Solution will ...
Vishal Kawade's user avatar
2 votes
2 answers
5k views

get Data from DB using Spring MVC to show in dropdown list like Country, state, city

I have 3 Drop Down list which are dependent on each other as Specific country contain Certain States and those states contain specific City, all These Country, state and City have a Service call to ...
Sadina Khatun's user avatar
2 votes
0 answers
2k views

Populating a dropdown based on another in spring mvc

I am trying to get values to a dropdown list in my jsp page according to the selected value of the first dropdown list. I am calling a database query for getting the values to the second dropdown on ...
SMash's user avatar
  • 345
2 votes
0 answers
410 views

SpringMVC : Dropdownlist select multiple values Issue- 400 bad Request

How to bind multiple select dropdown values to my model? On clicking the submit button getting [400 bad Request-The request sent by the client was syntactically incorrect ()]. It is the case of Many-...
Noorus Khan's user avatar
  • 1,476
1 vote
3 answers
936 views

How to return the value of a JSP select box in Spring MVC?

I'm sending to my JSP a Map<String entityDescription, Entity entity> to populate a <form:select> that's defined as: <form:form id="form" modelAttribute="pojo" action="create" method="...
gtludwig's user avatar
  • 5,631
0 votes
0 answers
859 views

Passing data to dropdownlist, java spring mvc

I would like to add some data such as merchant name into database.I wanted it to be retrieved from a dropdownlist or combo box.For example,i added 7-eleven as merchant name into database,from another ...
Ah Hiang's user avatar
  • 592
0 votes
1 answer
1k views

Bootstrap dropdown menu doen't work

I am trying to use a simple bootstrap dropdown menu but the menu doesn't dropdown when clicking on it. (I am working with java spring mvc 4) <script src="jq/jquery-2.1.1.min.js"></script> ...
Mike's user avatar
  • 1,129
0 votes
2 answers
452 views

Spring drop down not working

i am using spring mvc, <form:select class="form-control" id ="cmsphyexamtesttype_cmsPhysicalExamCategory_id" path="cmsPhysicalExamCategory.id"> ...
Chinmaya Hegde's user avatar
11 votes
3 answers
54k views

How to populate dropdown box in Spring MVC

I have been trying to find out how to populate a dropdown box in Spring MVC. There are a few threads out there on this subject but none of them that I have found have helped me so I'm hoping someone ...
dlinx90's user avatar
  • 875