[
https://issues.jboss.org/browse/WFLY-11095?page=com.atlassian.jira.plugin...
]
Adam Krajcik commented on WFLY-11095:
-------------------------------------
I tried it according to your example and I get the same behavior as in
[
WFLY-11086|https://issues.jboss.org/browse/WFLY-11086].
I used the nightly buld of Wildfly with the
[
WFLY-11065|https://issues.jboss.org/browse/WFLY-11065] resolved.
My steps:
# Create class MyConstants with constant HELLO
{code}
public class MyConstants {
public static final String HELLO = "hello world.";
}
{code}
# Create index.jsp:
{code}
<%@ page import="org.jboss.qa.management.web.resources.MyConstants" %>
<html><body>--- ${MyConstants.HELLO} ---</body></html>
{code}
# Create jsp-example.war
# Make requests
{code}
curl 127.0.0.1:8080/jsp-example/
{code}
On the first request, I get back correct answer:
{code}
<html><body>--- hello world. ---</body></html>
{code}
And on the second and so forth, I get incorrect answer:
{code}
<html><body>--- ---</body></html>
{code}
Thus this still seems as a duplicate to me. Please, let us know whether your use case
differs somehow or whether we missed something. Thanks.
Wildfly 14.0.0 regression: EL returns empty string on constant
--------------------------------------------------------------
Key: WFLY-11095
URL:
https://issues.jboss.org/browse/WFLY-11095
Project: WildFly
Issue Type: Bug
Components: Web (Undertow)
Affects Versions: 14.0.0.Final
Environment: Linux
Reporter: Arthur Borsboom
Assignee: Stuart Douglas
Priority: Major
This does work in Wildfly 13, but not in Wildfly 14:
<%@ page import="com.example.YourConstants" %>
${YourConstants.FOO}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)