you can have an onclick event on link which submitsthe form

----- Original Message -----
From: "Martin Nwalal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 26, 2000 3:40 PM
Subject: Re: how do I get Parameters from form to the same Jsp


> Thanks for your help but my problem was not resolved
> this my jsp with html form
> I would like to submit this form by using <a href=... > tag  instead of
> <input type=submit .....> tag
> How Can   I  do?
>
> %@ page isErrorPage="true"  %>
> <%@ page import="java.sql.*" %>
> <%@ page import=java.util.*" %>
>
> <html>
> <head> <title> Using the onSubmit enevt Handler for the Form object
> </title></head>
> <body>
> <script language="JavaScript">
> <!-- Hide
> // function submits a form to a server specified in the <form> tag
> function submiForm(form){
>  document.form1.submit(form);
> }
> // End Hide --->
>
> </script>
>
> <form name="form1">>
> This is a sample form
> <br><br>
> Name:<input type="text" size="20" name="name">
> <br>
> Age:<input type="text"  size="3" name="age">
> <a href= "#"  onClick="submitForm(form1)><img
src="/Images/Common/b_go.gif"
> ></A>
> </form>
>
> </body>
> </html>
>
> ----- Original Message -----
> From: suxuchun <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, November 26, 2000 3:06 AM
> Subject: Re: how do I get Parameters from form to the same Jsp
>
>
> > Just  use
> > <form action="" >
> > or
> > <form action=#>
> > That will be ok
> > ----- Original Message -----
> > From: "Martin Nwalal" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Saturday, November 25, 2000 8:45 PM
> > Subject: how do I get Parameters from form to the same Jsp
> >
> >
> > > Hi,
> > >
> > > How  Can I pass  parameters   from form link to jsp where form and jsp
> are
> > > in the same file .
> > > thanks for help
> > > Martin
> > >
> > >
> ==========================================================================
=
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> >
>
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to