|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
|||
|
|||
|
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. ![]() |
|
#4
|
|||
|
|||
|
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). |
|
#5
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > Why JSP not use new class that I compile again? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|