Jsp file and Java servlet not updating after changes in Eclipse

may seem dublicate, but I've tried old posts about this issue and still can't seem to solve ...

with Eclipse Juno and Tomcat 7, I am developing a dynamic web application in Eclipse. I have 2 Java Servlets in some packages, first I set some attributes to request and forward it to the second servlet with RequestDispacter and print this attribute in the second Servlet with out.println ....

when i change request or session attribute and redirect to second. the page is not refreshed.

i restart tomcat or restart eclipse nothing changed .. i publish tomcat with Ctrl + Alt + P every time but nothing changed ... I try to use external browser (Firefox and Internet Explorer) and delete caches but nothing has changed.

in Tomcat Server "Auto-publish on resource change" is enabled, but nothing has changed.

I am trying to use Eclipse Luna and Tomcat 8 but have the same problem. I did everything again, but, the page has not been updated yet! how to make it updated when you change something in the code.

Now I'm stuck, any advice would be great ...

+3


source to share


2 answers


Make sure Project> Auto Build is enabled .
Also try Tomcat> Clean ...



+4


source


Open the troubles section to see if you have file problems.



Also try creating a project with a clean project.

+1


source







All Articles