Including Multiple Resources Using RequestDispatcher

Jean-Baptiste No?l <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
Hi
Why am i not able to include more that one resources using the
dispatcher ???

My Code looks like following :

/// trial 1 (pernica)
ServletContext s = getServletContext();
RequestDispatcher d = s.getRequestDispatcher("/servletA");
d.include(req,res);
out.flush();
d = s.getRequestDispatcher("/servletB");
d.include(req,res);
///


///trial 2 (samsidd)
ServletContext s1 = getServletContext();
RequestDispatcher d1 = s1.getRequestDispatcher("/servletA");
d1.include(req,res);
ServletContext s2 = getServletContext();
RequestDispatcher d2 = s2.getRequestDispatcher("/servletB");
d2.include(req,res);

Only the first ressource (servletA) give a result.
I would appreciate your help.
Thanks,
Jean-Baptiste

___________________________________________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.