File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Changes donot take place..! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Changes donot take place..!" Watch "Changes donot take place..!" New topic
Author

Changes donot take place..!

Rekha Pande
Ranch Hand

Joined: Jan 29, 2004
Posts: 145
Hi all..
I have this really wierd problem with my JSP Pages..... Its like this .. I have been working with a JSP file for a very long time now ... recently when ever i make changes in the JSP file they are saved by JBuilder but when i try to display those changes in the browser ..some how it deosn't seem to reflect those changes..!!!
For example ... if i try and make changes in the HTML code or the JSP code ... those changes are saved in my jsp file..but when i refresh by browser ... those changes are no where to be seen...! what i usually used to do was copy paste the code in another JSP file with different name...then the code use to function properly ... but i couldn't find any solution on it...!
Some times when i used to restart my PC .. the code that i have changed used to be updated ... but then with 2-3 changes again the same problem came up in the JSP file..!!!
Please can any one tell me ... what is the problem ..... is their any problem with my JBuilder ... ???
thanxs in advance..!
:roll:
Anselm Paulinus
Ranch Hand

Joined: Sep 05, 2003
Posts: 389
Are you sure yours is not a case of caching? the browser probably just pulls up the cache when you hit refresh; ensure you hit refresh with the F5 button to ensure it wasn't the case of cahching
Rekha Pande
Ranch Hand

Joined: Jan 29, 2004
Posts: 145
Even if i hit the F5 key .. it doesnot upload the changes. .... i don't know what the problem is .... even if i clear the cache .. the cookies still it doesnot upload the changes ... i have to copy the code in another jsp then only my changed code works ... also when I make some changes to the jsp file and click on rebuild in JBuilder the file takes sometime for building right ... but when this problem arises the rebuild happens very fast even though the changes would be quite a lot....... what could be the problem..?
Pratibha Malhotra
Ranch Hand

Joined: Dec 21, 2003
Posts: 199
I hope the problem is not with your jsp engine. Its just a wild guess.
when ever engine receives a request it checks the time stamp of the jsp to be displayed.
And in case the timestamp has not changedit executes the container generated servlet.
May be your engine is not able to recognize the altered Time stamp
In case u are using tomcat, u can manually delete the class file of container generated servlet to ensure that problem lies with container.


~ Pratibha Malhotra<br /> <br />Sun Certified Java Programmer<br />SCEA 1.4 (In Progress)<br />~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />"Many of life's failures are people who did not realize how close they were to success when they gave up!!"
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
I have found that Tomcat is often prone to this problem. The solution seems to be to either restart Tomcat each time, delete the cached JSP class files, or switch to a container which handles this common situation better, such as Resin.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
gazanfer
Greenhorn

Joined: Aug 30, 2002
Posts: 2
This can be the problem of server also. In weblogic also i faced this problem. What u can do is in mysver there is .wlnotdelete folder. Inside it u will find your jsp servlet classes. delete that folder. there is no need to restart the server
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

Welcome to the Ranch "gazanfer"!
You'll find this forum a great place to seek help on JSP pages, and there aren't many rules you'll have to worry about, but one is that proper names are required. Please take a look at the JavaRanch Naming Policy and change your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Thanks!
bear
JSP Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rekha Pande
Ranch Hand

Joined: Jan 29, 2004
Posts: 145
hi all...
In reply to 'Gunjan Malhotra' post ...... i do keep on changing my System time as i have to check the functionality of the program with different time interval ... so is it that because of this the problem is arising...
meaning that the when i change the system date the timestamp doesn't get changed ... and where do i delete the JSP cached pages ... is it in the tomcat ... or we just go and clear the history in the browser..... I'm using JBuilder currently..!
Thanxs a lot for all replies.... it gave me a quite some information..!
Rekha Pande
Ranch Hand

Joined: Jan 29, 2004
Posts: 145
also where can i delete the class files which are container servlet generated..! ??
Pratibha Malhotra
Ranch Hand

Joined: Dec 21, 2003
Posts: 199
Hi
U can find the container generated servlets and their respective class files in
C:\Tomcat\work\localhost\application_name here.
try ur application again after deleting corresponding files
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

Gunjan,
JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "u" instead of spelling out "you" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not abbreviating such words.
thanks,
bear
JSP Forum Bartender
Rekha Pande
Ranch Hand

Joined: Jan 29, 2004
Posts: 145
hi all...
Gunjan .. i don't have this tomcat folder as i'm running the jakarata-tomcat from with in the Jbuilder.... I'm currently using Jbuilder 7 in which i have jakarta-tomcat3.3.1 and jakarta-tomcat 4.0.3... i checked out under these folder but couldn't find any thing relevant...!! please tell me where under the folder JBuilder 7 can find the servlet generated classes..!???
thanxs..!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changes donot take place..!
 
Similar Threads
jsp and jrun
can't access servlet
Contributing to the project.. Read First
help please
changes in jsp not reflecting immediately