java - ${status.value} does not work -
I have enabled spring MVC annotations running in my project, then the spring tag does not work in advance:
& lt; Spring: Tie Path = "List" & gt; & Lt; Form: Select Path = "mMaxFrequency" & gt; & Lt; Form: option item = "$ {status.value}" /> & Lt; / Form: Selection & gt; & Lt; / Spring: Tie & gt; During a JSP page presentation, I got the following exception:
Reason by: javax.servlet.jsp.JspException: Type [Java. Lang.String] is not valid for item items My Controller:
@RequestMapping (method = RequestMethod.GET) Public string show (@ModelAttribute ("Form") entry form, map & lt; string, object & gt; model throws IOException {AccessSettings settings = getAccessSettings (); Form.setAlertSettings (settings.getAlertSettings ()); Form.setMaxFrequency (settings.getMaxFrequency ()); Return "page"; } Public class AccessForm {public list & lt; Long & gt; Any ideas are wrong?
@adding to Peter's comment
"$ {status .value} " Returns the item inside the string . While the list characteristic of the items inside the option tag is expected. This is very clear from your exception. Check that you are adding items to the appropriate list I think you are overriding the same frequency every time
Comments
Post a Comment