Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is JSP contain <jsp:require/>  RSS feed

 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

I have a question that PHP contain two things one is <php:include> and <php:require> both has different meaning and applications

But in case of JSP I have seen only <jsp:include/> will it work for both case in what case PHP has include and reuire different

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66208
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In addition to the include action, there is also an include directive in JSP. I have no idea how they map to the PHP concepts.
 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PHP speak require is a compile time (static) include whereas include is dynamic.

JSP speak the include directive (<@include file=...>) is static whereas include directive (<jsp:include page=...>) is dynamic

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!