Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Eclipse Web Tools Platform Project (WTP) » web.xml include-prelude configuration doesn't work
web.xml include-prelude configuration doesn't work [message #1837380] Fri, 29 January 2021 00:55 Go to next message
Victor Bombella is currently offline Victor BombellaFriend
Messages: 5
Registered: January 2021
Junior Member
Hi everyone!

I'm working on a Maven Web project and in my web.xml I have something like this:

    <jsp-config>
        <jsp-property-group>
            <url-pattern>*.jsp</url-pattern>
            <url-pattern>*.jspf</url-pattern>
            <page-encoding>UTF-8</page-encoding>
            <scripting-invalid>true</scripting-invalid>
            <include-prelude>/WEB-INF/jsp/base.jspf</include-prelude>
            <trim-directive-whitespaces>true</trim-directive-whitespaces>
            <default-content-type>text/html</default-content-type>
        </jsp-property-group>
    </jsp-config>


I have added some taglibs in the base.jspf that would be used for every jsp page. But it seems that Eclipse doesn't detect that configuration becase it display an error saying that the tags are not defined in all of the jsp files.

I'm sure it works and it's ok because when I run the application on Tomcat everything works fine (and in IntelliJ I don't get that error)...

What can I do to fix that and make eclipse take in count the include-prelude configuration?.

Thanks for your help.
Re: web.xml include-prelude configuration doesn't work [message #1837408 is a reply to message #1837380] Fri, 29 January 2021 14:06 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4439
Registered: July 2009
Senior Member

Is your project also a Dynamic Web Project? How do you run the application? Either way, you should probably open a bug report with details of where all of the involved files are located in the project.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: web.xml include-prelude configuration doesn't work [message #1837419 is a reply to message #1837408] Fri, 29 January 2021 16:02 Go to previous messageGo to next message
Victor Bombella is currently offline Victor BombellaFriend
Messages: 5
Registered: January 2021
Junior Member
Thank you!

Yes, it's a Dynamic Web project. I've tried with many versions of Dynamic Web project and none of them works.

Where can I open the bug report?
Re: web.xml include-prelude configuration doesn't work [message #1837434 is a reply to message #1837419] Fri, 29 January 2021 20:18 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4439
Registered: July 2009
Senior Member

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=WTP%20Source%20Editing&component=jst.jsp , and the locations of the involved resources will be key.

Just a quick test, what happens if you reverse the order of your url-patterns?


_
Nitin Dahyabhai
Eclipse Web Tools Platform

[Updated on: Fri, 29 January 2021 20:20]

Report message to a moderator

Previous Topic:JS template in Generic Text Editor
Next Topic:Dark theme, xsd file editor, almost black on almost black
Goto Forum:
  


Current Time: Mon May 06 05:29:56 GMT 2024

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

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

Back to the top