Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: include directive and action difference in JSP

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post include directive and action difference in JSP

    Please explain

    How we see the difference between include action and directive in JSP,

    <%@include file="includes/header.jsp" %>

    <jsp:include page="Included.jsp" />

    Thanks
    Jawahar


  2. #2
    Member
    Join Date
    Nov 2013
    Location
    Bangalore, India
    Posts
    70
    My Mood
    Cool
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Default Re: include directive and action difference in JSP

    <%@include file="includes/header.jsp" %> is static include meaning the contents are pre-compiled whereas <jsp:include page="Included.jsp" />
    is runtime include.

Similar Threads

  1. Java function like php include
    By childoffred in forum Java Theory & Questions
    Replies: 4
    Last Post: April 20th, 2012, 05:21 PM
  2. How can i pass the valus from a JSP to the action class???
    By sachin.negi04 in forum Web Frameworks
    Replies: 1
    Last Post: March 10th, 2012, 01:35 AM
  3. [SOLVED] difference between action event from 2 buttons with same name?
    By nggdowt in forum AWT / Java Swing
    Replies: 5
    Last Post: November 7th, 2011, 10:51 AM
  4. why a unknown symbol is visible on a jsp page which include another html pages
    By se.anilp in forum JavaServer Pages: JSP & JSTL
    Replies: 4
    Last Post: July 21st, 2011, 11:12 AM