Fix deprecated JSTL namespaces and upgrade to JSTL 1.2 for Tomcat 9 compatibility #340
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
JSP files were using deprecated JSTL 1.0 namespaces (
http://java.sun.com/jstl/core_rt,http://java.sun.com/jstl/fmt_rt) and the obsolete Acegi Security taglib, causingJasperExceptionfailures when rendering pages. The old JSTL 1.1.2 dependencies also lacked the Tag Library Descriptor (TLD) files required by Tomcat 9 to resolve modern JSTL namespaces.Changes
JSP Namespace Updates
taglibs.jsp: Updated to modern JSTL namespaces and Spring Security taglibhttp://java.sun.com/jstl/core_rt→http://java.sun.com/jsp/jstl/corehttp://java.sun.com/jstl/fmt_rt→http://java.sun.com/jsp/jstl/fmthttp://acegisecurity.org/authz→http://www.springframework.org/security/tags(prefix changed fromauthztosec)error.jsp/error-500.jsp: Fixed incomplete JSTL namespaceshttp://java.sun.com/jstl/core→http://java.sun.com/jsp/jstl/corehttp://java.sun.com/jstl/fmt→http://java.sun.com/jsp/jstl/fmtJSTL Dependency Upgrade (pom.xml)
Upgraded JSTL from 1.1.2 to 1.2 to provide TLD files for modern namespaces required by Tomcat 9:
javax.servlet:jstl: Upgraded from 1.1.2 to 1.2 (JSTL API)org.glassfish.web:jstl-impl:1.2: Added implementation containing TLD files that define modern namespace URIs (http://java.sun.com/jsp/jstl/core,http://java.sun.com/jsp/jstl/fmt, etc.)taglibs:standard:1.1.2: Commented out (functionality included in jstl-impl)The jstl-impl JAR includes the necessary TLD files (
META-INF/c.tld,META-INF/fmt.tld) that were missing in JSTL 1.1.2, resolving the "cannot be resolved in either web.xml or the jar files" error.Verification
All 208 JSP files checked; no other deprecated namespaces found. Build succeeds and WAR file includes proper JSTL 1.2 JARs with TLD files.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.