• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

include directive and include action

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<%@ include> : Used to include static resources during translation time.

: Used to include dynamic content or static content during runtime.
reply
    Bookmark Topic Watch Topic
  • New Topic