Skip to main content

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="" prefix="c" %>

My web.xml file contains the following snippet :


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: 29599
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:Cannot import JavaFX packages
Next Topic:Help with modifying source and variables views during debugging
Goto Forum:

Current Time: Mon Oct 22 07:59:29 GMT 2018

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

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

Back to the top