Hi,
I have a problem in server side include feature of servlet.Iwant to add
one header in each of my servlet by including a header servlet.We are
using Tomcat 3.2 servlet container and Apache webserver.I have made a
header servlet named header and placed it at /webapps/WEB-INF/classes of
tomcat and now i am calling it from another servlet which is also placed
in the same directory. But it is blank page. Please help me out.
The source code of the calling program is
   public void doGet(HttpServletRequest request,
                       HttpServletResponse response)
        throws ServletException, IOException
        {
                        String url="/back/";
                        //PrintWriter out=response.getWriter();
                        //response.setContentType("text/html");
                        ServletContext context=getServletContext();
                        RequestDispatcher
                        rd=context.getRequestDispatcher(url);
                        if (rd!=null)
      {//out.println("<html><head></head><body>hello</body></h tml>");
                                rd.include(request,response);
                        }

//out.println("<html><head></head><body>hello1</body></h tml>");
        }
Thanks in advance


--
B.C. Joshi
************************************************
Information Technology Services,
HEEP, Bharat Heavy Electricals Limited (BHEL),
Hardwar,Uttranchal,India
************************************************

___________________________________________________________________________
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