• Post Reply Bookmark Topic Watch Topic
  • New Topic

include vs import directive

 
harish goyal
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anybody help me in understanding
include and import directive?
please help
 
Gaurav Chhabras
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
import will import all the class files of that package and include includes the output of that particular page.
 
Stefan Evans
Bartender
Posts: 1822
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is an excellent reference you can find the info on: JSP2.0 Reference

Note that "import" is an attribute of the Page directive.

You may also look up the <jsp:include> tag and discover how it differs from the <%@ include %> directive.
[ October 06, 2005: Message edited by: Stefan Evans ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!