• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

static vs dynamic include doubt

 
Rahul Siddharth
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone.

I have a doubt regarding jsp include action and jsp include directive.To my knowledge I know that jsp directive is used to include the code at translation time and jsp action is used to include the response of the included code at translation.

Could someone tell me ,given a scenario when would you use one and when would you use the another?.
 
Vikrant Sahdev
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this out :
http://faq.javaranch.com/view?IncludesActionDirective
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Vikrant",
Please check your private messages regarding an important administrative matter.
-Ben
 
Rahul Siddharth
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All.

I have found my answer to the above question.

The include action is used when you have a piece of code that changes often.The include directive is used for static content.

Any other answers are welcome.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic