use javascript function

in method called by "Add" button

document.form.action="file name"
document.form.method="POST"
document.form.submit()

and
in method called by "Find" button

document.form.action="file name"
document.form.method="GET"
document.form.submit()

regards
zulfi





----- Original Message -----
From: Biren Patnaik <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 09, 2000 8:04 PM


> Hi All,
> I m facing one problem in JSP.Can I use GET and POST both in a JSP
> program simultaneously .That means Suppose I want to use both
> simultaneously in a form,then what should I do?.BeCos I m writing one
> program which will consist of 2 buttons they r "Add","Find",.So for Add we
> have to write <form method = "POST" and for Find we have to write <form
> method = "GET".Is there any soln for that..
> Thanx in advance
> Biren
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to