[...]
>
> 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
[...]

Hi,

since HTML 4.0 it's possible ta add an target-attribute to the form
definition. There you can use "_blank" to open a new window. It looks like
this:

<form action="/servlet/path/to/Servlet" method="POST" target="_blank">
<!-- some form-elements -->
</form>

Because of HTML 4 some older browser might not support it. It works with IE
3.0 and Netscape 2.0.

This opens a new window when you start writing to the PrintWriter:

> PrintWriter Out=new PrintWriter(res.getOutputStream());
> res.setContentType("text/html");
> Out.println(risultato);
> Out.close();

Some words to your coding style, it's better to write identifiers in lower
case, in your source it should be:
PrintWriter out = res.getWriter();
res.setContentType("text/html");
out.println(risultato);
out.close();
^^

Christian

___________________________________________________________________________
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