Hello everybody!
I have the following problem with my web application...
I would like to send all the data of a request to a servlet through an HTML
form and write the result in another window (not that one where the form was
displayed), in some words the things I want to do are:
1)To send my requerst to the servlet through an HTML form
2)Read the result of the request
3)Open a new window
4)Write the result in the new window just opened
I know how to send the HTML form to the servlet but I don't know how I can
read the result (that can be a string or html code) returned by the servlet
and write it in another window:-(
In fact the servlet returns the result string (or html code) through this
java code:
PrintWriter Out=new PrintWriter(res.getOutputStream());
res.setContentType("text/html");
Out.println(risultato);
Out.close();
In this way the result is displayed in the current window after deleting the
old page, but I would like
the result is written in ANOTHER window: so if something in sending the form
goes wrong I can send the form to the servlet a second time without
inserting the data in the form a second time.
How can I do?
Thank you very much in advance!
Luca
___________________________________________________________________________
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