wood burning stoves
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Customizing the included content with <jsp:param> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Customizing the included content with <jsp:param>" Watch "Customizing the included content with <jsp:param>" New topic

Customizing the included content with <jsp:param>

Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
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

Joined: Mar 22, 2010
Posts: 308

Have you tried the same include in pag2.jsp with a different value for subtitle?

SCJP6, SCWCD5, OCP-JBCD5, OCE-JWSD6 OCE-JPAD6 , OCM-JEA5 1,OCM-JEA5 2,3 - Brainbench certifications: J2EE, Java2, Java2-NonGUI, JSP, SQL2000 Admin, SQL2000 Programming , Brainbench certified Java Programmer, Computer Programmer, Web Developer, Database Administrator
I agree. Here's the link: http://aspose.com/file-tools
subject: Customizing the included content with <jsp:param>
It's not a secret anymore!