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.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

customising the included content with jsp:param

 
maih fhil
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic