Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Include one jsp into another at runtime

 
JayaSiji Gopal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
ramprasad madathil
Ranch Hand
Posts: 489
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the <jsp aram> tags



cheers,
ram.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sure that its not a servlet question. Please move it to JSP forum mates.
 
ramprasad madathil
Ranch Hand
Posts: 489
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the tag name is <jsp:param>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic