#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    181
    Rep Power
    14

    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. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Posts
    68
    Rep Power
    14
    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.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    181
    Rep Power
    14
    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.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    34
    Rep Power
    13
    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).
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    181
    Rep Power
    14
    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.

IMN logo majestic logo threadwatch logo seochat tools logo