showDocument will simply show the content at the URL you pass to it and doesn't care whether it is a static html file, dynamic content from a jsp or servlet or even some other mime type such as a pdf file.
Best Wishes John Burgess [EMAIL PROTECTED] Tel: 01865 718666 Fax: 01865 718600 -----Original Message----- From: Serdar BOZDAG [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 7:38 AM To: tomcatGroup Subject: sevlets and applets hi, i have a question about servlets. in my applet I use showdocument method to open a servlet in a new browser window. this servlet reads the contents of a file that user choose. this servlet needs the send the content of the file to the applet but since showdocument is used out.println() command in the servlet shows the content in the browser window. I may use urlconnection.connect() in applet to call the servlet but this time the wizard for file choosing will not be displayed. (servlet displays a form in doGet method and get the contents of the form in doPost method and at the end of the doPost method result must be given to the applet.) my question is with showdocument method of applet can i get the result of a servlet. (i know quite an awkward question but i was not able to write more simpler) thanks in advance, serdar --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 10/07/02 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 10/07/02 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>