File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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
Author

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.

kunal
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?
page2.jsp


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
 
Don't get me started about those stupid light bulbs.
 
subject: Customizing the included content with <jsp:param>