javascript - Spring submit has double parameter -


i new spring web applications. when submit form, request mapping getting "dual" parameter. form set as:

<form action="" method="post" name="myform"> ...... </form> 

i use javascript submit form, example, when submit form going various pages, javascript this:

function gotopage(pagenumber) {  document.forms['myform'].action="trx?page=" + pagenumber;  document.forms['myform'].submit(); } 

so when have link on jsp page,

<a href="javascript:gotopage('3')">page number: 3</a> 

on controller request mapping /trx, should getting parameter page value "3", getting value "3,3".

any ideas why? noticed on page parameter, if use parameters action=search or action=sort. works out fine.

dumb question. :)
had <select name="page"> in form.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -