I write jsp and access through browser ,if i make any changes & refresh that browser it has 'class cast exception' ie.it has cache problem when i delete it from cache then no problem how can i recover from this?can i write some code in my jsp so that cache problem never face?please help thanks in advance
Once i faced the problem of server(tomcat) using older version of jsp, i.e. my changes didn't reflected. All i did was deleted its work folder, so that it uses latest version of jsp. All servers have a folder where they keep compiled .class files and .java files for your jsp. Just try to delete that folder, and see if it works.
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache"> I don't know how this client side script will prevent any server side exception?
Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"
Sometimes, the .class files compiled for JSP may not be recompiled when changes made and the client sent the same request. To play save, try remove all related .java and .class files to make sure that the changes are made effective. Nick.