Atilio Ranzuglia wrote:
>
> Hi everybody:
>
> I am including two files on one jsp file like this:
> <jsp:include page="page1.jsp" flush="true" />
> <jsp:include page="page2.jsp" flush="true" />
>
> In both, page1.jsp and page2.jsp I am using 'request'
> object.
> When I try to access the getParameter() method of
> 'request' in the second page I always get a null
> value.
>
> If I try to includes the pages reversed it is the
> same.
>
> Obviously my problem if with the 'flush' parameter,
> why request is no longer available after the first
> inclusion? The buffer should by emptyed nor the
> request object. What can be happening or this is
> normal and there is another sollution?
>
> PD: I cannot use the <%@ include %> directive, I need
> it on execution time
Which web container are you using? The included page/servlet
should have access to the same request object, including
parameters, as the original page. In other words, the behavior
you see is not spec compliant.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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