<form method="post" action="addContact.html" name="mailer" id="mailer" onsubmit="return checkmailform();" acceptCharset="UTF-8">
<table>
<tr>
<td><label path="date"><spring:message code="label.name"/></label></td>
<td><input id="FormInput" path="name" value=" ? " /></td>
</tr>
<tr>
<td> </td>
<td><a href="/onclick_value_1?" onclick="writeValue(1); return false">Ccылка 1</a>
<a href="/onclick_value_2?" onclick="writeValue(2); return false">Ccылка 2</a>
</td>
</tr>
</table>
</form>
<br />
<br />
<script>
function writeValue (V){
document.getElementById('FormInput').value=V;
return false;
}
</script>