Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jsp file and Java Servlet is not updated after changes in Eclipse

it may seems dublicate but i tried old posts about this problem and still can not solve...

with Eclipse Juno and Tomcat 7 , i develop dynamic web application in Eclipse . i have 2 Java Servlet under some packages , in first one i set some attributes to request and forward it to second Servlet with RequestDispacter and print this attribute in second Servlet with out.println....

when i change request or session attribute and forward to second one . page is not updated .

i restart tomcat or restart eclipse nothing changed.. i publish tomcat with Ctrl + Alt + P everytime but nothing changed ... i try external browser (Firefox and Internet Explorer) and delete caches but nothing changed ..

in Tomcat Server "Auto publish when resources changed" is enabled but nothing changed.

i try to Eclipse Luna and Tomcat 8 but it is has same problem . i did everything again but , still page is not updated !! how to make it updated when change something in code..

i am in stuck now , any advice would be great ...

like image 531
canmuratt Avatar asked Dec 05 '25 17:12

canmuratt


1 Answers

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

like image 95
outdev Avatar answered Dec 08 '25 08:12

outdev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!