Re: Including Multiple Resources Using RequestDispatcher
John Arockiaraj <[email protected]>
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <[email protected]> |
Hi, You can have more than one RequestDispatcher.include() in a single servlet. You may want recheck your 'web.xml' file and server's log file for any incorrect servlet mapping. HTH John -----Original Message----- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[email protected]]On Behalf Of Jean-Baptiste Nokl Sent: Friday, May 09, 2003 6:43 AM To: [email protected] Subject: Including Multiple Resources Using RequestDispatcher 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 ___________________________________________________________________________ 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