Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Include file issue

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Geeks,

I included <%@ include file="../topMenu/order" %> in most of my jsp page, which order contains some static HTML tags. Once I made changes to the order page, I have to made changes to each of the jsp that includes the order page. Is there anyway to avoid this tedious operation? Please help me, as I am suffering now ....


Myriads Thanks,

Transistor
 
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Each JSP file that has been accessed at least once has corresponding Servlet in work folder. Delete related Servlets from work folder. Now when you access JSP file again, new Servlet will be generated � which will have updated content of �order�.

If you are working on Development server, for ease, you can delete all Servlets from the work folder.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What container are you using?

I know that all but the oldest versions of Tomcat will check for changes in the included pages and recompile automatically for you.

If you're on a Unix box, the touch command will reset the last-modified date for the files. This can be run on your whole JSP directory.
 
If you try to please everybody, your progress is limited by the noisiest fool. And this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic