Home > Back-end >  For help on checkboxes. For springmvc fault?
For help on checkboxes. For springmvc fault?

Time:10-15

For SpringMvc recently in use for the web project, the project need to use multiple marquee, the code is as follows,



But the problem is, when a multiple-choice, the choice of the background to receive content is correct, (F) and (E) can be normal,
But I only choose one, the value will automatically remove Spaces, such as the first choice, the background value is obtained (F), did not have the space,
Corresponds to the control in the form of field is an array, use the list also have this situation,
Excuse me, what reason is this? The great god have to solve?

In addition, the test under the struts framework, there is no this problem,
Please the great god,

CodePudding user response:

Is indeed a spring's fault, don't understand the underlying spring is converted into an array, why do you want to remove the Spaces. Use the trim
  • Related