I have code:



New.java---------------------------------------
package gg;

public class New {
public String ololo()
{
return "sss";
}
public void run()
{

}
}

index.jsp---------------------------------------

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="gg.New" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>1а</title>
</head>
<body>
<%
New aaa = new New();
out.println(aaa.ololo());
%>

</body>
</html>


And I have error---------------------------------

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 14 in the generated java file
Only a type can be imported. grinder.market.New resolves to a package

An error occurred at line: 12 in the jsp file: /index.jsp
New cannot be resolved to a type
9: </head>
10: <body>
11: <%
12: New aaa = new New();
13: out.println(aaa.ololo());
14: %>
15:


An error occurred at line: 12 in the jsp file: /index.jsp
New cannot be resolved to a type
9: </head>
10: <body>
11: <%
12: New aaa = new New();
13: out.println(aaa.ololo());
14: %>
15:


Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.jav acError(DefaultErrorHandler.java:102)
org.apache.jasper.compiler.ErrorDispatcher.javacEr ror(ErrorDispatcher.java:331)
org.apache.jasper.compiler.JDTCompiler.generateCla ss(JDTCompiler.java:457)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:378)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:353)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:340)
org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:644)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:358)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:389)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:333)
javax.servlet.http.HttpServlet.service(HttpServlet .java:722)


What a mistake? What I am doing not wrong?
IDE: Eclipse + Tomcat