facebook

web.xml parse exception

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #220168 Reply

    Scott
    Member

    Can you tell me what the problem is with my <taglib> tag? The web.xml editor is flagging it as unexpected.

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <web-app version=”2.4″
    xmlns=”http://java.sun.com/xml/ns/j2ee&#8221;
    xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
    xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”&gt;
    <servlet>
    <description>This is the description of my J2EE component</description>
    <display-name>Call Center Customer System</display-name>
    <servlet-name>SearchServlet</servlet-name>
    <servlet-class>kickstart.j2ee.servlet.SearchServlet</servlet-class>
    </servlet>

    <servlet-mapping>
    <servlet-name>SearchServlet</servlet-name>
    <url-pattern>/search</url-pattern>
    </servlet-mapping>

    <taglib>
    <taglib-uri>http://java.sun.com/jstl/core</taglib-uri&gt;
    <taglib-location>/WEB-INF/c.tld</taglib-location>
    </taglib>
    <welcome-file-list><welcome-file>search.html</welcome-file></welcome-file-list>
    </web-app>

    #220173 Reply

    Riyad Kalla
    Member

    stanlick,
    The web 2.4 schema changed format from the DTD in that you need to enclose your <taglib> tags with <jsp-config> tags.

    #220179 Reply

    Scott
    Member

    Riyad —

    My bad! Thanks. Can you tell me if the web.xml editor is going to be smart enough to read the web-app version=”2.4″ and make meaningful suggestions? 🙂

    Scott

    #220181 Reply

    Riyad Kalla
    Member

    Can you tell me if the web.xml editor is going to be smart enough to read the web-app version=”2.4″ and make meaningful suggestions? 🙂

    You mean autocomplete or quickfixes? If you mean autocomplete, it already supports it. If you mean quickfixes, not likely.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: web.xml parse exception

You must be logged in to post in the forum log in