Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Customizing the included content with <jsp:param>

 
Kunal Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the way to customizing the included content with <jsp:param> is to pass the subtitle information as a new request parameter to the included page!

JSP that does the include:



the included file("Header.jsp"):

So, this is a sensitive subtitle that's part of the header, but it changes depending on the page.

suppose i want to use this subtitle in page 1, but want to change the title in page 2. Then, will i have to make a new header?(of course not,as this customizing procedures solve dat). But the Question is how can the title be changed in page 2? i am totally confused with this <jsp:param>. Please provide a small and easy example.
 
Rajeev Rnair
Ranch Hand
Posts: 310
1
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried the same include in pag2.jsp with a different value for subtitle?
page2.jsp
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic