I'm trying to do Servlet Nesting, this is what i've done so far and it works
fine :

============================================================================
==================================
import javax.servlet.http.*;
import javax.servlet.*;

import java.io.*;
import java.util.*;

public class Index extends HttpServlet
{

        public void init(){
                System.out.println("Reload "+this.getClass());
        }

        public void service(HttpServletRequest req, HttpServletResponse resp)
                throws ServletException, IOException {

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


this.getServletContext().getRequestDispatcher("/servlet/AnotherServlet").inc
lude(req,resp) ;

        }
}
============================================================================
==================================

The output of servlet "AnotherServlet" is included in the output of servlet
"Index".

My problem is the following : how do I get the output of servlet
"AnotherServlet" as a String object ?

Thank you in advance,
Arnaud Dostes.

___________________________________________________________________________
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