File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes c:import and header file question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "c:import and header file question" Watch "c:import and header file question" New topic
Author

c:import and header file question

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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?


GenRocket - Experts at Building Test Data
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
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?


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: c:import and header file question