Home » JSTL Core c:import Tag

JSTL Core c:import Tag

by Online Tutorials Library

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 &ltinclude > 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 tutoraspire.com and would store in a variable “data” which will printed eventually.

You may also like