How to access ModelAttribute value without path
-
24-07-2021 - |
Domanda
I have a @ModelAttribute
someString
in my Controller. How can I access the value in my JSP? I tried this:
<form:input path=""/>
but it doesn't work
Please help.
Soluzione
Have you tried to define it in the jsp form? Something like this..?
<form:form id="form" action="${formAction}" method="post" modelAttribute="someString" enctype="multipart/form-data">
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow