0
나는 <form:select>
구성 요소가있는 페이지가 있고 그것의 항목은지도입니다. 선택한 값을 사용하여 아래 링크가있는 다른 컨트롤러로 어떻게 보낼 수 있습니까? 필요한 값은 ${someValueINeed}
입니다. 감사합니다참고 자료 <form:select> JSP의 값
<form:form method="post" action="" commandName="user">
<table class="table table-striped table-bordered bootstrap-datatable datatable">
<tr>
<td><form:label path="division">
Division
</form:label>
<form:select path="division">
<form:option value="" label="-"/>
<form:options items="${divisions}" />
</form:select>
</td>
</tr>
<tr>
<td>
<form:label path="id">
User:
</form:label>
<form:select path="id">
<form:options items="${users}" />
</form:select>
</td>
</tr>
<tr>
<td><input type="submit" class="btn" value="Search" /></td>
</tr>
</table>
<a class="btn" href="<c:url value="/doctor/consultation/save/"/> ${form}/?userId=${someValueINeed}">Send request</a>
</form:form>
의미가 있습니다! 프로그래머를 후원 해 주셔서 감사합니다! –
당신은 오신 것을 환영합니다! –