Is there a way to have default values for EL functions arguments (e.g., optional arguments)?
+1
A:
you can make your own tags, which supply these values that will wrap the functions you are trying to call. JSP2.1 has .tag files that are basically jsp files, and it would be VERY easy to define default values using those.
mkoryak
2009-02-08 17:03:05
A:
Expressions like this?
#{foo.bar('argument')}
No, at least not yet. This is proposed for JSR 245, which should be part of Java EE 6. Kin-Man Chung explains here.
McDowell
2009-02-11 11:09:59