Saturday, 5 September 2015

What is jsp-config in deployment descriptor?

jsp-config element is used to configure different parameters for JSP pages. Some of it’s usage are:
  • Configuring tag libraries for the web application like below.
    1
    2
    3
    4
    5
    6
    <jsp-config>
            <taglib>
                <taglib-uri>http://journaldev.com/jsp/tlds/mytags</taglib-uri>
                <taglib-location>/WEB-INF/numberformatter.tld</taglib-location>
            </taglib>
    </jsp-config>
  • We can control scripting elements in JSP pages.
  • We can control JSP Expression Language (EL) evaluation in JSP pages.
  • We can define the page encoding for URL pattern.
  • To define the buffer size to be used in JSP page out object.
  • To denote that the group of resources that match the URL pattern are JSP documents, and thus must be interpreted as XML documents.

1 comment:

  1. Waoo Awesome content posting,Many developers would agree that jsp is difficult and complex whereas jsp is simple and so more productive,This site is so amazing.This sites gives good knowledge of jsp.

    ReplyDelete