What is the difference between the various JSTL libraries and which ones to use?

I am puzzled by build errors and errors that mislead me. From them, I can’t understand what the difference between the various JavaServer Page Standard tag libraries is. For example, I see:

jstl.jar (in Apache Tomcat) jstl-1.2.jar (in Tomahawk examples) jstl-impl.jar (in GlassFish) 

In the past, I used (and recently restored and kept confidential from disaster) from javax.servlet.jsp.jstl

 jstl-api-1.2.jar jstl-impl-1.2.jar 

These latter ones are the only ones with which I seem to be able to reliably use JavaServer Faces (JSF).

There is no wiki description I found that contrasts with these different JARs. Yes, I know that their age is different. It is interesting, for example, if jstl.jar does not have to be modern, final, both in one (api and impl), and I just use the wrong JSF libraries (myfaces-api-1.2.8.jar, for example) to go with him?

My goal is to set up the final JAR set to do the Facelet job using either MyFaces or RichFaces, which I know best.

Thanks to everyone who can shed light and best practices on this.

+4
source share
1 answer

If your target servlet server is configured, you do not need to have it in /WEB-INF/lib . Full Java EE containers such as Glassfish and JBoss AS are built-in.

If your target servletcontainer server does not have one built-in (Tomcat, etc.), or you want to cover as many servlet containers as possible, you need to choose the latest version of JSTL that matches the version of the servlet API as announced by your web.xml .

For more information on the differences between the JSTL version and where to download them, see our own JSTL wiki tag page . This is the same page as when you hover below your question and click info .

+5
source

Source: https://habr.com/ru/post/1338471/


All Articles