error.fnMapper.method=Function ''{0}'' not found
error.fnMapper.paramcount=Function ''{0}'' specifies {1} params, but {2} were declared
-# **ExpressionImpl
+# ExpressionImpl
error.context.null=ELContext was null
# ArrayELResolver
error.property.notfound=Property ''{1}'' not found on type: {0}
error.property.invocation=Property ''{1}'' threw an exception from type: {0}
error.property.notreadable=Property ''{1}'' doesn't have a 'get' specified on type: {0}
-error.property.notwritable=Property ''{1}'' doesn't have a 'set' specified on type: {0}
\ No newline at end of file
+error.property.notwritable=Property ''{1}'' doesn't have a 'set' specified on type: {0}
+
+# Parser
+error.identifier.notjava=The identifier [{0}] is not a valid Java identifier as required by section 1.19 of the EL specification (Identifier ::= Java language identifier). This check can be disabled by setting the system property org.apache.el.parser.SKIP_IDENTIFIER_CHECK to true.
\ No newline at end of file
import javax.el.ELException;
import org.apache.el.lang.EvaluationContext;
+import org.apache.el.util.MessageFactory;
import org.apache.el.util.Validation;
@Override
public void setImage(String image) {
if (!Validation.isIdentifier(image)) {
- throw new ELException("[" + image +
- "] is not a valid Java identifier");
+ throw new ELException(MessageFactory.get("error.identifier.notjava",
+ image));
}
this.image = image;
}
@Override
public void setImage(String image) {
if (!Validation.isIdentifier(image)) {
- throw new ELException("[" + image +
- "] is not a valid Java identifier");
+ throw new ELException(MessageFactory.get("error.identifier.notjava",
+ image));
}
this.image = image;
}
<bug>15688</bug>: Use fully-qualified class names in generated jsp files
to avoid naming conflicts with user imports. (markt)
</update>
+ <update>
+ Improve error message when EL identifiers are not valid Java identifiers
+ and use i18n for the error message. (markt)
+ </update>
</changelog>
</subsection>
<subsection name="Cluster">