aspose file tools*
The moose likes Servlets and the fly likes Include one jsp into another at runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Include one jsp into another at runtime" Watch "Include one jsp into another at runtime" New topic
Author

Include one jsp into another at runtime

JayaSiji Gopal
Ranch Hand

Joined: Sep 27, 2004
Posts: 303
Hi,

I have a situation like this:

I have a list of categories, I want to implement a print functionality where the page displays the data for each of the selected categories.

Each category data rests in a jsp page. I want a jsp page, which includes all these jsp pages at runtime. The individual jsp pages expect parameters in them. If i use jsp:include, how do i send these parameters?

How do i do this?


SCJP 1.4, SCWCD 1.4<br /> <br />Thanks in advance!<br />Jayashree.
ramprasad madathil
Ranch Hand

Joined: Jan 24, 2005
Posts: 489

You can use the <jsp aram> tags



cheers,
ram.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
I'm sure that its not a servlet question. Please move it to JSP forum mates.
ramprasad madathil
Ranch Hand

Joined: Jan 24, 2005
Posts: 489

the tag name is <jsp:param>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Include one jsp into another at runtime