I'm trying to do something like this:
<%
String headerDateFormat = "EEE, d MMM yyyy h:mm:ss aa";
%>
<fmt:formatDate pattern="<% out.print( headerDateFormat ); %>" value="${now}" />
I've also tried:
<fmt:formatDate pattern="${headerDateFormat}" value="${now}" />
And:
<fmt:formatDate pattern="headerDateFormat" value="${now}" />
I'm obviously very new to JSP - is this possible? Ideally I'd like to be able to reuse the headerDateFormat
in javascript via Rhino - I think as is it will work with it, but not in the JSP tags.