• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Customizing the included content with <jsp:param>

 
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 310
1
Oracle Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried the same include in pag2.jsp with a different value for subtitle?
page2.jsp
 
reply
    Bookmark Topic Watch Topic
  • New Topic