Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Request-time Inclusion of dynamic content- Doubt

 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I have a doubt on the following text that I read somewhere about the behavior of <jsp:include> standard action element:
"If the resource is static, its content is included in the calling JSP page. If the resource is dynamic, it acts on a request and sends back a result that is included in the JSP page."



However, I think that it's always a run-time call irrespective of the contents of the included resource? Pls correct me if i'm wrong.

Thanks,
Reema
 
Arvind Giri
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Refer to this j2EE tutorial
 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Arvind,
My initial post is a copy-paste from the same link.
But, sill I have a doubt on this topic.
 
Arvind Giri
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
However, I think that it's always a run-time call irrespective of the contents of the included resource? Pls correct me if i'm wrong.


Yes it is always a run time call, But static content are inserted on as it is basis at run time.

e.g. if your html page contains




Then you will see <%= 1 %> in your browser.

However had it been a jsp file then the output would be generated from jsp and that would be inserted in the output stream. So the output would be 1 not <%= 1 %>;

Hope it answers your question ?
[ November 23, 2006: Message edited by: Arvind Giri ]
 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Arvind!
It's clear now...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic