How to access ModelAttribute value without path
-
24-07-2021 - |
سؤال
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.
المحلول
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">
لا تنتمي إلى StackOverflow