title: Nested expression in JSP/JSTL
body: <p>I am using JSPs for the view, and Spring MVC 3.0 for the controller.
  In my JSP, I want to show the current DateTime, for which I have the following code...</p>
  
  <pre><code>&lt;c:set var="dateTimeDisplayFormat" value='&lt;spring:message code="display.dateFormat" /&gt;'/&gt;
  
  &lt;c:set var="currentDateTime" 
      value='&lt;%= new SimpleDateFormat(${dateTimeDisplayFormat}).format(new Date()) %&gt;' 
      scope="page" /&gt;
  </code></pre>
  
  <p>Now, the problem is JSTL fails to recognize my nested tag for SimpleDateFormat instantiation. I wish to pass the format string (As obtained from the 'dateTimeDisplayFormat' variable) to the SimpleDateFormat constructor.</p>
  
  <p>Can someone please advice how do I write the nested constructor for SimpleDateFormat in the c:set statement above?</p>
  
  <p>Thanks in anticipation!</p>