File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

include directive

 
Jan Sterk
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question v5.2.234 from Enthuware:

Which of the following directives are applicable only to tag files?

  • attribute
  • variable
  • page
  • include
  • import

  • Answer given: attribute, variable and include.

    But I think that the include directive can also be used in regular jsp-pages.
    [ September 02, 2008: Message edited by: Jan Sterk ]
     
    Charles Lyons
    Author
    Ranch Hand
    Posts: 836
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    But I think that the include directive can also be used in regular jsp-pages.
    You are correct - <%@ include file="..." %> can be used in any JSP or tag file. I use it (rarely) myself. Remember also it's a static (translation- and compile-time) import, while <jsp:include /> is dynamic (at request-time).
     
    I agree. Here's the link: http://aspose.com/file-tools
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic