wood burning stoves 2.0*
The moose likes JSP and the fly likes how does <c:import> works ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "how does <c:import> works ?" Watch "how does <c:import> works ?" New topic
Author

how does <c:import> works ?

gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 924
    
    1

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

Joined: Jan 10, 2002
Posts: 61095
    
  66

Because it is an action, it cannot act like a directive.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 924
    
    1

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

Joined: Jan 10, 2002
Posts: 61095
    
  66

Just like any other reference to a static resource. The response will just be included.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how does <c:import> works ?