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 jsp not displaying the changes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp not displaying the changes" Watch "jsp not displaying the changes" New topic
Author

jsp not displaying the changes

Christian Nash
Ranch Hand

Joined: Jan 17, 2006
Posts: 107
Hi all,

I am modifying an included jsp when the web project is running on the server. But the changes are not getting reflected. Please help and suggest why this is happening.


- Christian
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
Does it work if you restart the web application? The server may be set not to recompile the JSP if any of the constituent pages changes.


Ping & DNS - my free Android networking tools app
Christian Nash
Ranch Hand

Joined: Jan 17, 2006
Posts: 107
i've tried refreshing the jsp and also restarting the server. Both have been of no help
Rao Raghu
Ranch Hand

Joined: Jan 05, 2007
Posts: 100
Try deleting history of your browser.
If even this doesn't work, go to the compiled JSPs directory(work/standalone/....) and delete this particular JSP's class file. By doing this, you will compell the server to re-compile the JSP.


RAGHU<br /> <br />"When the going gets tough, the tough get going"
Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1844

hi,

are you using include directive like this :
<@inlude page="" %>

then it will not reflect since its is include in the translation time. runtime changes will not happen. you just modify the main jsp file and then refresh it, it will show the changes.


Krishna Srinivasan
Spring Tutorials, OCAJP Mock Questions, 400+ OCPJP Mock Questions
Christian Nash
Ranch Hand

Joined: Jan 17, 2006
Posts: 107
Hi,

Yes I am using include directive like this :
<@inlude page="" %>

but i want the changes to be shown during runtime. I tried clearing browser history and also restarted the server. but these have been of no help to me.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

With some containers, changes to the included pages are not picked up until the page containing them is regenerated.

If you're on a Unix system, the touch command can update the timestamp on your files which will trigger the container to rebuild the JSP in question.
If you're on a windows machine, just open and save the containing JSP.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Ben Souther:
With some containers, changes to the included pages are not picked up until the page containing them is regenerated.

If you're on a Unix system, the touch command can update the timestamp on your files which will trigger the container to rebuild the JSP in question.
If you're on a windows machine, just open and save the containing JSP.


What conatiner/version are you using?
Christian Nash
Ranch Hand

Joined: Jan 17, 2006
Posts: 107
Thanks Ben and everybody too,
Finally worked. I just had to save the containing JSP.
 
jQuery in Action, 2nd edition
 
subject: jsp not displaying the changes
 
Similar Threads
Weblogic Question (7.1)
J2EE Security for Servlets - 2.4 changes?
To Reflect The Changes Made
about jsp:include
JSP Doubt?