Why JSP not use new class that I compile again?
I use bean class with JSP. But When I add some code and compile new bean. JSP not use new been class it use old class.
I try to set file server.xml and set <DefaultContext reloadable="true"/> and restart Tomcat. But it not work?
any help please?
that happens alot to us here to. it may not be replacing the work folder inside of the server... to ensure that it will use the new jsp code, delete the old jsp from the server and try to call the page. you should get a "Cannot find page" error. then re-ftp it to the server or save it up or however you are doing it, and then it should recompile the JSP fresh in the work folder.
July 10th, 2002, 03:00 AM
Thank, but it still use old bean class.
You method work when JSP get own result (but not use bean class)
My friend suggent delete directory under work directory but it don't work.
July 10th, 2002, 10:59 AM
Are you using Tomcat 3.x?
Use a better JSP/Servlet Engine like Resin (unless your on a virtual host and don't have a choice).
July 10th, 2002, 11:46 PM
I use Tomcat 4.04 (lastest version).
I try every way, I think the only way to do is shutdown and startup server everytime I change bean class.