You are here:   HomeJava Server PagesJava Standard Tag Lib (JSTL)JSTL Core c import Tag

This tag <c: import> is used to import the absolute URL and show the content to another page. Some mandatory attributes are used to implement on this tag like “URL” this attribute use to retrieve and import the content from one page to another page. Other attributes like “scope” and “var” these are also used as required but this are not compulsory for using in this tag.

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>

   <head>

        <title>Thats The&lt;c:import&gt;Tag Example In J.S.P</title>

   </head>

     <body>

                    <c:import var="desc" url="/definition.jsp"/>

                    <c:out value="${desc}"/>

     </body>

</html>

                  JSTL Core c import Tag

That’s the page where we gave the reference of another URL which will use to show the result on web browser.

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>

<head>

         <title>&lt;c:out&gt;Example In J.S.P</title>

</head>

      <body>

            <p><center><br><b><c:out value="This is The Example Of C:IMPORT Tag...  "/></b></br></center></p>

     </body>

</html>

That’s the page where the URL will be imported and shows the output on web browser.





Subscribe To Free Daily Newsletter!

Get Free News Updates Delivered Directly To Your Inbox
About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to contact us.



What's New and Popular





Search Content







Advance Courses



Basic Courses



Advertise with Us