Hi all:
I have a question regarding iPlanet web server.
I have a jsp page as my company's home page. Inside the jsp page, I use
request.setAttribute("name", "object");
then I use the following code to include another jsp:
javax.servlet.RequestDispatcher rd =
getServletContext().getRequestDispatcher("to be included jsp page directory
and name");
try{
rd.include();
}catch(Exception(Exception e) {}
when I tried to include two jsp pages, the html output has been massed up.
And if the home page has something in the beginning before I include the jsp
page, the output of HTML massed up too. I don't know why. Can anybody help
me?
But if I use the jsp tag like the following:
<jsp:include page="jsp directory" flush="true"></jsp:include>
everything is OK.
I used ServletExec before and it works perfectly fine for both.
Thanks in advance.
Jashua Ni
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets