What does com.sun.el contain?

Is it just an API defined by Java that needs to be implemented by (say) the servers, or does the JRE also include an implementation?

The thing is, I tried to combine the two lines using the "+" on my JSF page, but he threw a NumberFormatException. It seems he was trying to parse my lines using Long.parseLong ().

I was surprised to see this package in a stack trace, as I thought these expressions were Groovy expressions. This, of course, doesn't look like Groovy, but some other ELs.

I am using a weblogic server.

+3
source share
1 answer

javax.el, EL. API Java EE, Java SE. API, , API, . Java EE - . servletscontainers/applicationservers, Weblogic, Tomcat, Glassfish .., .

, , EL, +, . + EL , a Number, , Long. EL.

, , "concat".

<h:outputText value="#{user.firstName} #{user.lastName}" />
+6

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


All Articles