I have a form object with a form like :
<form:form commandName="search" id="xmsimplify-form" method="POST">
<form:hidden path="typeOfSearch" />
[...]
</form>
I would like to retrieved the value of the field typeOfSearch in the a scriplet in the header (before the actual tag form)
<%
String typeOfSearch = [????]
if ("somevalue".equals(typeOfSearch) ) {
[...]
}
%>
What would be the best thing to put instead of the [????]?
If there a way to retrieve the form bean in the request attribute or that page attribue?
Thanks
The recommended method would be do it JSTL style
But if you really want you can pull objects from the model map directly from the request.