• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

dynamically including JSP's  RSS feed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to include JSP dynamically by using include directive
 
Author and ninkuma
Marshal
Posts: 66826
168
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to be clearer than that.
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Actually include directives happens at translate time

but if you want include page at runtime use standard action

syntax for standard action :

<jsp:include page = "Header.jsp" />

notes:
The above syntax include the Header.jsp at run time
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can also use <c:import url="" [context=""]> JSTL tag, but you'll need to have to import the core library using taglib directive and you need jstl.jar.

It's more flexible than jsp:include because you can include anything from outside your app as well by specifying the URL.

USing context you can get a page from another app on the same server. See specs for more details
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66826
168
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is all assuming that by "dynamic", the poster meant "at run time". The question still needs to be clarified.

Please put a little more effort into asking your questions.
 
sandy bol
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Kathiresan Chinnasamy your suggestion is worked out
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!