mardi 27 avril 2021

Invalid element name:- display-name One of the following is expected:- distributable, context-param , filter, servlet, etc

I am trying to solve this error... This error is showing by default when I create new project within dynamic web project option.. The scenario is project creates successfully but when I expand web.xml file inside webapp folder errors are showing....

Pls click the code of web.xml file:-

<?xml version="1.0" 
encodingg="UTF-8"?>
<web-appxmlns:xsi="http://
www.w3.org/2001/XMLSchema-
instance" 
xmlnss="http://java.sun.com
/xml/ns/javaee" 
xsii:schemaLocation="http:
//java.sun.com/xml/ns/javaee 
httpp://java.sun.com/xml/
ns/javaee/web-app_2_5.xsd" 
versionn="2.5">
<display-name>helloweb</display- 
name>
</web-app>

This is the attachment of error:-

[https://i.stack.imgur.com/savdu.png[1]




Aucun commentaire:

Enregistrer un commentaire