I have two tables in my form. One for the user input and one for the submit and exit buttons. In between I have javascript to output a date to the screen. It's not happening. What am I doing wrong? Here's the code:
<table>
<!-- data entry code goes here -->
</table>
<%
/** get today's date and save it in the today variable **/
Calendar cal = Calendar.getInstance();
Date today = new Date();
today = cal.getTime();
/** format the date for today variable and put it in the string variable DATE **/
SimpleDateFormat sdf= new SimpleDateFormat("EEEE, MMMM d, yyyy"
;
String DATE;
DATE=sdf.format(today);
out.println('" + DATE +"');
%>
<table align="center">
<!-- submit, exit, reset buttons -->
</table>
I know the date retrieval works. Does it only display outside a form? Is there a way to get it to display between the input and the buttons?
<table>
<!-- data entry code goes here -->
</table>
<%
/** get today's date and save it in the today variable **/
Calendar cal = Calendar.getInstance();
Date today = new Date();
today = cal.getTime();
/** format the date for today variable and put it in the string variable DATE **/
SimpleDateFormat sdf= new SimpleDateFormat("EEEE, MMMM d, yyyy"
String DATE;
DATE=sdf.format(today);
out.println('" + DATE +"');
%>
<table align="center">
<!-- submit, exit, reset buttons -->
</table>
I know the date retrieval works. Does it only display outside a form? Is there a way to get it to display between the input and the buttons?