Question

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.

Was it helpful?

Solution

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">
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top