I'm completely new to JSP but not Java

<div>
<%@ page import="java.util.*" %>
<%= 
	Date date = new Date();
	out.println(date.getHours()+":"+date.getMinutes()+":"+date.getSeconds());
	%>
</div>

All I need is

Hour:Minute:Second

. (Edit: stupid emoticons)
I'm getting this error on Date

Multiple annotations found at this line:
	- Syntax error, insert ")" to complete 
	 MethodInvocation
	- Syntax error, insert ";" to complete Statement
	- Syntax error, insert ";" to complete Statement
	- Syntax error, insert ")" to complete 
	 MethodInvocation

and this at the end on %>

Multiple annotations found at this line:
	- Syntax error on token ")", delete this 
	 token
	- Syntax error on token ")", class 
	 expected
	- Syntax error on token ")", invalid 
	 Expression
	- Syntax error on token ")", delete this 
	 token

Nevermind...found the issue was
<%=
Needs to be
<%

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.