• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsp not displaying the changes

 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i've tried refreshing the jsp and also restarting the server. Both have been of no help
 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1880
Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ben and everybody too,
Finally worked. I just had to save the containing JSP.
 
reply
    Bookmark Topic Watch Topic
  • New Topic