I have a project in eclipse which contains both a jsp file and a java class. But when I make a change in my java class, eclipse does not understand the changes in the class until I close eclipse and open it again. It is very annoying that I have to close eclipse and open it after even just adding a print statement. How can I fix this?
example, lets say i have this method :
public String m1(){
return "Johnny";
}
and this statement in jsp file:
<%= a.m1() &>
(I am passing jsp:useBean part of jsp our class name is a )
this prints "Johnny".Then i make change on method like this:
public String m1(){
return "Liz";
}
after this, i build my project.But it still prints Johnny rather than Liz.When i close eclipse and reopen it this time it prints Liz.