Questions tagged [spring-mvc-initbinders]
65 questions
0
votes
1 answer
Creating global initBinder using Spring
I am using Spring 3.2 and I am looking for a way that I can force controllers to specify which attributes allowed to be bound, so malicious users can not inject values into bound objects.
Spring recommends using setAllowedFields() to white-list /…

AnnH
- 43
- 1
- 6
0
votes
1 answer
Extending The Spring Framework (Java) Servlet
I'm working on a Java web app that uses the Spring Framework (MVC). All my code is in controller files that are instantiated by the servlet. I would like to extend the servlet so that I can run some code in the init of the servlet; however, I'm…

Trevor
- 13,085
- 13
- 76
- 99
0
votes
1 answer
Unable to bind checkboxes even after registering custom property editor
I've the following sequence of steps to register a team:
Select Team - This will display the list of players of this team as check boxes (JSP page below)
User can select one or more players displayed
newdTeam request handler method should be…

Aravind Yarram
- 78,777
- 46
- 231
- 327
0
votes
1 answer
SpringMVC initbinder - binding list items form Integer
I have a page that has a list of custom items i register a custom editor in the init binder of the controller to allow data binding. The list is passed form the view. The problem i am having is i am on a view that is bind to a different…

devdar
- 5,564
- 28
- 100
- 153
0
votes
2 answers
SpringMVC returning validation errors with page redirect
I have a form that gets validated from the init binder.setValidatior(). However i have a controller method that returns a redirect once this is done the errors from the validation function do not bind to the errors element on the form. How can i get…

devdar
- 5,564
- 28
- 100
- 153