Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

include directive and include action  RSS feed

 
Nimish Patel
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

Have a good day...
what is the exact diffrence between include directive and include action ? which one better?
please give me advise.

Thanks,
nimish
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try searching this forum with the following string:
"include directive action compile"
minus the quoted, of course.

You should find several threads explaining this.
 
Ola Daniel
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The include directive is used to insert text and code at JSP translation time.

The file that the file attribute points to can reference a normal text HTML file or it can reference a JSP file, which will be evaluated at translation time. It is important to note that after the initial request is
processed, the data included does not change until the included file is changed and the server is restarted.


The <jsp:include> action provides a mechanism for including additional static and dynamic resources
in the current JSP page. The syntax for this action is as follows:
 
Umesh Wale
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<%@ include> : Used to include static resources during translation time.

: Used to include dynamic content or static content during runtime.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!