lundi 4 juillet 2016

how to send text box value as parameter in hyperlink in spring mvc

I have two buttons used in Spring:Form as follows,

<button class="btn">Button1</button>
<a title="Reject" class="btn" href="<c:url value="/value/reject/?textValue="valueFromField/>">Reject</a>

(Two types of buttons are used as those two have different functionalities.) Requirement is to set value to url, from a text field (which is in the same form).

How can I implement this support? I am using JSP in client side.




Aucun commentaire:

Enregistrer un commentaire