This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
It is written under this topic in the book that we can customise the Header.jspf included through the jsp:include but not with include directive But I think if we set the request parameter in the main jsp before using the include directive, we can customise the header as now also the Header.jspf will have access to the request parameter. Am i correct?
posted 8 years ago
I don't think so, because with the include directive the code will be added at compile time. So it's like copy and past of code.
During the execution of the JSP you can use the same request parameters in the included page, because with the include directive the JSP will act like one coded page.
So that's why there is no trouble with sending parameters to the include directive, because you don't need them.