Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how does <c:import> works ?

 
gurpeet singh
Ranch Hand
Posts: 924
1
Fedora Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how does <c:import url= "" /> tag works ? i means to say does it include the page given in the url in the same way as include directive or does it include the page at runtime by using runtime call like <jsp:include > action?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65227
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because it is an action, it cannot act like a directive.
 
gurpeet singh
Ranch Hand
Posts: 924
1
Fedora Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so that means <c:import> sends a runtime call like <jsp:include> action . if this is true how are we able to include static html pages ? since they are static or say not-jsp pages how will they receive request and response objects from the page which is using the <c:import > ?

Regards
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65227
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just like any other reference to a static resource. The response will just be included.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic