> 2.
> if i am having 2 submit buttons in a form and i want to take different
> actions for each of the button what i have to do?...
> say for example i have "attachments" and "send" buttons in the form and
when
> i click
> "attach" button i want to upload a file and when i click "send" button i
> want to send the mail...
>

Give both the submit buttons the same name. if you are going to have the
requests handled by a single servlet you could use the
getParameter(submitbuttonname) to detect which of the buttons was pressed.
you could also use the onSubmit event to handle this.

>
> thanks in advance...
>
>
> vijay....
>
>
___________________________________________________________________________
> 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