Thank you for your reply, But I am using two products, one is jsp from jspsmart for uploading files, and for sending emailto the admin , I am using a servlet from coolservlets.com, Thanks >From: christopher brown <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: off topic (how a form can be submitted automaticaly from > another form) >Date: Fri, 16 Mar 2001 18:22:56 +0100 > >You might find it better to approach this differently. > >When the server receives the uploaded file, it can contact the >administrator. I imagine that as your second form was going to be submitted >to a servlet or jsp, you could just handle both tasks in one single servlet >(this might be more reliable too). > >Otherwise, if you prefer to send two forms, it may be better to send them >from different frames (to avoid "race" conditions in which the result comes >back to the browser for the first form -- unlikely, but maybe possible -- >before the second one has been submitted). You could also add a TARGET >attribute to each form, specifying a different target frame or window. In >either case though, I suspect this would be somewhat "messy" as a solution. >As far as "how to" goes, within JavaScript, you can submit a form using >document.forms["formname"].submit() ; this becomes more complicated (but >not >impossible) if you invoke a form's "submit" method from a different frame. > >Nevertheless, I still recommend handling it all with one form and one >servlet. > >-Chris > >----- Original Message ----- >From: "sufi malak" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Friday, March 16, 2001 5:57 PM >Subject: off topic (how a form can be submitted automaticaly from another >form) > > > > Hi, I have two forms, form1 is for uploading files ,and form2 for for > > sending notification to the admin, so he will know if someone has >uploaded >a > > file to him. > > > > Please help. > > Thanks > > _________________________________________________________________ > > Get your FREE download of MSN Explorer at http://explorer.msn.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 > >=========================================================================== >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 _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.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
