'jsp:include not resolving scriptlets in path
In our application we often include a sub-section of the page by pointing to a Spring REST controller, like this:
<jsp:include path="/xyz/data?id=<%=obj.theId%>"/>
It normally works but I am finding that in some cases the scriptlet is not resolved.
The outcome varies from page to page: sometimes the target controller complains of a missing parameter, other times the interpreter complains about the syntax.
Other scriptlets in the same page work fine; The issue seems to be only with the jsp:include
tag.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|