user1499731
user1499731

Reputation:

Eclipse isn't updating custom methods in JSP scriptlets

I'm editing a Dynamic Web Project, with a simple class in the project's /src folder, and a .jsp page to access it.

Within Eclipse, .jsp page only recognizes some of the methods in my class as existing -- other classes get "The method ... is undefined" and "The method ... is not visible", even though the code all compiles and works like I would expect it to. But this only happens sometimes.

<%
myConnectionDBO = ConnectionDBO.getInstance();
out.println("Is connected? "
        + myConnectionDBO.isConnected()
        + "<br>");
out.println("Attempting resultset grab...<br>");

ResultSet rs = myConnectionDBO.doSelectWhere(1);
%>

Before you ask, I have rebuilt/cleaned my project, refreshed it from the Project Explorer, auto-build is enabled, restarted my application server (JBoss), and restarted Eclipse. The problems remain.

Upvotes: 3

Views: 531

Answers (1)

gaspyr
gaspyr

Reputation: 353

Despite the fact that you MUST do what the previous post recommends (JSTL + EL = awesomness) i'm wondering wether you missed the <%@ page ...> directive to import classes that would contain the definition of those methods.

Upvotes: 1

Related Questions