kirankulkarni
MIS
I have a function which i want to call on the submit of a form.
e.g.
<form>
some code
<input type=submit name=somename onClick=document.form.action=page2.jsp>
<% if (here i want the code that says implement "if" if the submit button is pressed). I'm trying,
if(request.getParameter(somename).equalsIgnoreCase(submit){}
but it implements the if on page load and gives a null pointer exception.
Thanks in advance for your help
e.g.
<form>
some code
<input type=submit name=somename onClick=document.form.action=page2.jsp>
<% if (here i want the code that says implement "if" if the submit button is pressed). I'm trying,
if(request.getParameter(somename).equalsIgnoreCase(submit){}
but it implements the if on page load and gives a null pointer exception.
Thanks in advance for your help