I'm trying access some value from my jsp file in Spring controller. All examples that I've found was with <input>
or <form>
code, but I want to pass "clear" value (just String), for example <c:set var="name" value="Ololo"/>
or smth like this and print it in Conroller.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can't. Data can flow only in one direction, from controller to view (jsp). If you have to send information back to the controller then you should make http request. That's the reason you only see <form>
and <input>
in examples