Hello to everyone,
I am tryng to ouput a frame page through the following code of servlet.
I can run and compile it without any error but I receive a blank page when I
call the servlet.
Can anyone tell me what is wrong with this code or How would output a frame
page through a servlet.

Thank you.

Bobo.



import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class AdminMainPage extends HttpServlet {

    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws IOException, ServletException

    {

         PrintWriter out = res.getWriter();
         res.setContentType("text/html");


   out.println( "<html>"+   "<head>"+
       "<meta name=\"GENERATOR\" content=\"Microsoft FrontPage 4.0\">" +
       "<meta name=\"ProgId\" content=\"FrontPage.Editor.Document\">" +
       "<title>ISSUE LOG SYSTEM-Administrator</title>" + " <body
background=\"bg.jpg\"> " +
       "</head>" );

 out.println( " <frameset framespacing=\"0\" border=\"0\"
rows="+"\"50%"+","+"*"+"\" frameborder=\"0\"> ");

 out.println( " <frame name=\"top\"
src=\"http://localhost/servlet/AdministratorGate\"; scrolling=\"auto\"
noresize> ");

 out.println(" <frame name=\"bottom\" src=\"http://localhost/blank.html\";
scrolling=\"auto\" noresize> ");
 out.println("<noframes>");
 out.println("<body>");
 out.println("<p>This page uses frames, but your browser doesn't support
them.</p>");
 out.println("</body>");
 out.println("  </noframes>");
 out.println("</frameset>");
 out.println("</html>");


 }

}

___________________________________________________________________________
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