Ken Adams wrote:
> Basically I have a form that looks something like the following: The form is
> contained in the file subscriptAdd.jsp so I want to submit the form to
> itself and do some jsp validation after it's submitted, but for some reason
> I noticed that two request are being make on each click. Any suggestions.
> Thanks
URL?
> <form name="add" action="<%= response.encodeURL("subscriptAdd.jsp") %>"
> method="POST" onsubmit="return checker()">
You should generally include the output HTML, not your JSP when asking
about an HTML related question. Though, in this case it appears as
though the output will be action="subscriptAdd.jsp".
There is no reason why that code would make anything submit twice,
unless the JavaScript function has something to do with it. Check that
function checker() isn't doing any unnecessary form submissions. Other
than that, it's most likely an error with your JSP back end coding.
--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox