• 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

[SOLVED] Dynamic <jsp:include> page

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Guys -

I would like to dynamically grab different jsp pages using <jsp:include> tags. I tried using this method without any luck:



Eventually it dawned on me that this wouldn't work because the expression tags wouldn't be evaluated before the <jsp:include> tag. I would basically like to include a specific page based on a variable on the "outer" page. Has anyone managed to figure out how to do this sort of thing at all? The value of the variable can be *anything*, so I can't even do a big set of "if/then" statements.

Thanks for any help!
 
Sam Gardner
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Whoops, figured it out already.

Probably should have looked at the documentation earlier.

Thanks anyway.
reply
    Bookmark Topic Watch Topic
  • New Topic