Hi guys,
Using MyEclipse 5.0M1 and Eclipse 3.2rc7… when using CTRL+space and enter to complete code in the JSP Editor, the editor normally automatically pastes the import declaration at the top of the JSP page, e.g.
<%@page import="com.bob.MyClass"%>
<html>
<!-- My HTML -->
</html>
However, if you have other java code within a <%! declaration, the editor pastes below that code and not at the top with the rest of the imports, e.g.
<%@page import="com.bob.MyClass"%>
<%!
private String doSomething()
{
return "Something";
}
%>
<%@page import="com.bob.MyOtherClass"%>
<html>
<body>
<!-- My HTML -->
<%=MyOtherCl...%> <-- code completion here adds MyOtherClass import above but not right at the top
</body>
</html>
Regards
Charles