Results 1 to 2 of 2
  1. #1
    avallach is offline Member
    Join Date
    Mar 2013
    Rep Power

    Default "header" of jsp files - simple question


    I have the same header in all my .jsp files. I include other .jsp files from index.jsp. Do I need to use the header in all files or is it just fine to use it only in index.jsp? The header looks like this:

    PHP Code:
    <%@page contentType="text/html" pageEncoding="UTF-8" language="java" %>
    <%@taglib prefix="c" uri=""%>

  2. #2
    manjusha is offline Member
    Join Date
    Jul 2014
    Rep Power

    Default Re: "header" of jsp files - simple question

    JSP page included dynamically (jsp:include) must have a taglib declaration if it uses the taglib because it is compiled separately.
    JSP page included statically does not have the same restriction because it's compiled into the servlet itself.

Similar Threads

  1. Replies: 0
    Last Post: 12-07-2012, 09:29 AM
  2. Replies: 3
    Last Post: 10-30-2012, 04:06 PM
  3. Simple "Refresh" and "Forward" buttons
    By needSolution in forum AWT / Swing
    Replies: 3
    Last Post: 12-12-2011, 02:15 AM
  4. Replies: 5
    Last Post: 06-22-2010, 04:51 PM
  5. Replies: 1
    Last Post: 10-20-2008, 08:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts