Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

c:import and header file question

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a header file that begins with:

And then I have another page the includes this header file using the jsp:include page= command. But I would like to go ahead and use the c:import command instead. Problem is, it doesn't work.
So my question is are pages that include pages that contain the declaration for Tag Libraries not able to use the tag libraries? Did that make sense? Do including pages not inheret (sp?) tag declarations from included pages?
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want this to work, you need to use the compile-time include <%@include file='xx'%>.
c:import, just like jsp:include, is a request-time include. These happen long after the JSP has been compiled/deployed.
I'm sure this is about where we got to in this other thread. Is there some particular reason why you don't seem to like using the compile-time include?
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there some particular reason why you don't seem to like using the compile-time include?
No reason. Especially now. Thanks Frank.
[ January 12, 2004: Message edited by: Gregg Bolinger ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic