>>> Lalith Jayaweera <[EMAIL PROTECTED]> 9/27/99 7:30:45 PM >>>
> How can we write the following html statements within a SERVLET to
output
>to the client.
In your servlet you write:
public void doGet(HttpServletRequest req,HttpServletResponse resp)
throws ....
{
PrintWriter out=resp.getWriter();
resp.setContentType("text/html");
out.println("<HTML>");
out.println("<HEAD>");
out.println("<TITLE>SAMPLE</TITLE>");
out.println("</HEAD>");
out.println("<FRAMESET COLS=\"200,*\">");
out.println("<FRAME SRC=\"COMBO1.HTM\" NAME=combo>");
out.println("<FRAME SRC=\"TEXT.HTM\" NAME=text>");
out.println("</FRAMESET>");
out.println("</HTML>");
out.close();
}
This will output the frameset page to the browser, the browser will
ask for the "combo1.htm" page and the "text.htm" from the servlet as
well, if you want these pages to come from another server you need to
have the whole URL specified, eg:
out.println("<frame src\"http://somehost:8080/combo1.htm\"
name=combo");
>How can we display the above output to the user(client) using
SERVLETS.
I hope that helps. You can see that it's just like sending any other
HTML page.
Nic
___________________________________________________________________________
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