Include file not changing

Hi

This is a simple problem that crops up every so often and i'm never sure how to rectify it.

I have a jsp page (page1) with a jsp include file (page2). When I change the include file and save it I expect to see the changes reflected in page1 when I reload it, however this doesn't always happen.

I stop and start tomcat, delete my work folder, reboot, stamp my feet and sometimes it cures it but not today. What am I doing wrong?

Sorry I should of been clearer. JSP files are compiled once, the first time you view the page. So what I was trying to say is, try viewing the individual jsp pages you have changed, before viewing them within the main page.

the changes in the includes will only be reflected in the overall page if the file that is doing the including changes too.

so, to come back to your initial example, if you edit "page2" and resave it, also resave "page1" (some editors make this a hassle - i've been using dreamweaver mx recently, and i can just a space/char and then remove it again, and it'll allow me to re-save). that way, your app server sees that "page1" has changed and recompiles it - giving you the changes you made in "page2" in the final page.