Hi,
    Are you sure of the URL(mapping)?
    ie; header (as its in the description) or "/back/"(code).
ASalam.
----- Original Message -----
From: "B C Joshi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 09, 2002 1:26 PM
Subject: Re: SERVLET-INTEREST Digest - 1 Apr 2002 to 2 Apr 2002 (#2002-91)


> 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/";
>                         file://PrintWriter out=response.getWriter();
>                         file://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);
>                         }
>
file://out.println("<html><head></head><body>hello1</body></h tml>");
>         }
>         Thanks in advance
>
> B.C. Joshi
>
>
___________________________________________________________________________
> 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
>

___________________________________________________________________________
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