Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Ignored directive in web.xml file
Ignored directive in web.xml file [message #1769313] Sat, 29 July 2017 09:06 Go to next message
Roparzh Hemon is currently offline Roparzh HemonFriend
Messages: 18
Registered: July 2017
Junior Member
I'm using the Eclipse JEE IDE (Version: Neon.3 Release (4.6.3)) on my Mac 10.11.3.

I have a taglibs.jsp file whose content is

<%@ page pageEncoding="UTF-8" %>

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

My web.xml file contains the following snippet :

<jsp-config>
        <jsp-property-group>
            <url-pattern>*.jsp</url-pattern>
            <include-prelude>/WEB-INF/taglibs.jsp</include-prelude>
       </jsp-property-group>
  </jsp-config>



But the directive is ignored : in another .jsp I have the following line

<p><c:out value="This is Sydney" /></p>


this is rendered as "null" in the browser; if however I add a line

<%@ include file="taglibs.jsp" %>  
<p><c:out value="This is Sydney" /></p> 


then it will render "This is Sydney" as expected.
Any help appreciated.
Re: Ignored directive in web.xml file [message #1769321 is a reply to message #1769313] Sat, 29 July 2017 12:33 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29034
Registered: July 2009
Senior Member
This question is best directed to the Web Tools forum.
Re: Ignored directive in web.xml file [message #1772999 is a reply to message #1769321] Wed, 20 September 2017 05:42 Go to previous message
Eclipse UserFriend
Your css and jsp folders should be out of WEB-INF directory as this directory will be locked (when you want direct access to your jsp files, which I think you want) and you don't need to map JSP files :) You should remove <servlet> and <servlet-mapping> from your web.xml
Previous Topic:Java Development related questions.
Next Topic:Help with modifying source and variables views during debugging
Goto Forum:
  


Current Time: Wed Dec 13 19:11:12 GMT 2017

Powered by FUDForum. Page generated in 0.02063 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software