Javatpoint Logo
Javatpoint Logo

JSTL Core <c:import> Tag

The <c:import> is similar to jsp 'include', with an additional feature of including the content of any resource either within server or outside the server.

This tag provides all the functionality of the <include > action and it also allows the inclusion of absolute URLs.

For example: Using an import tag the content from a different FTP server and website can be accessed.

Let's see the simple example of c:import tag:

Above example would fetch the complete content from javatpoint.com and would store in a variable "data" which will printed eventually.






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA