<js:formatDate value="${job.runtimeInformation.nextFireTime}"/>
This also works:
<js:formatDate value=<%= addYear(new Date())%>/>
This does not work:
<js:formatDate value="<%= addYear(${job.runtimeinformation.nextFireTime})
%>"/>
I suppose it is because I am mixing <%= %> and ${}
Can anyone help - what must I do to fix it?
Thanks in advance.
'<%= %>' encloses *Java* source that writes to the Response 'out' stream.
'${}' encloses *Expression Language* (EL) source that is interpreted by the
application server.
You should not need nor use Java scriptlet if you are rigorous in your use of
tag libraries and EL. If you must use scriptlet, you cannot use EL inside of
it. Instead, use the Java expression to which the EL evaluates.
--
Lew
try
<%=addYear(job.getRuntimeInformation().getNextFireTime())%>