Servlet showing HTML page

I ma using Tomcat as standalone server.

have servlet showing HTML page which has frames in it . All frames are linked to some html pages. These pages are stored in

webapps/project directory and servlet is in

\Tomcat 4.1\webapps\Project\WEB-INF\classes

Tomcat can show the servlet with al frames witherror402 means it is unable to take html pages from webapps/project

what's wrong

my codes are

import java.io.*;

import javax.servlet.*;

import javax.servlet.http.*;

publicclass Htmlservletextends HttpServlet{

publicvoid doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException,IOException{

response.setContentType("text/html");

PrintWriter out = response.getWriter();

out.println("<HTML>\n"+

"<HEAD> <TITLE>A frameset document</TITLE></HEAD>\n"+

"<FRAMESET rows= \"20%,40%,40%\" >" +

"<FRAME src=\"contents_of_frame3.html\" frameborder=\"0\" scrolling =\"no\">"+

"<FRAMESET cols=\"*,200\">"+

"<FRAME src=\"contents_of_frame1.html\" scrolling=\"no\">"+

"<FRAME src=\"contents_of_frame2.gif\" >"+

"</FRAMESET>"+

"<FRAME src=\"contents_of_frame4.html\" frameborder=\"0\"> </FRAMESET>"+

"</HTML>");

}

}

[2058 byte] By [seemapa] at [2007-10-2 20:30:23]
# 1
Hi,Please please try this<FRAME src=\"/contents_of_frame1.html\"thanks,nvseenu>
nsrininasa at 2007-7-13 23:13:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...