Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp not displaying the changes

 
Christian Nash
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Christian Nash
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i've tried refreshing the jsp and also restarting the server. Both have been of no help
 
Rao Raghu
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Krishna Srinivasan
Ranch Hand
Posts: 1862
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Christian Nash
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ben and everybody too,
Finally worked. I just had to save the containing JSP.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic