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 Include file issue 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 "Include file issue" Watch "Include file issue" New topic
Author

Include file issue

YuenLian Wu
Ranch Hand

Joined: Nov 16, 2005
Posts: 73
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
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
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.


My blood is tested +ve for Java.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Include file issue
 
Similar Threads
Including Files at Page Translation time
How to force a web page to compile any time in websphere
include file question!
Able to see servletConfig init parameter changed value without restarting sever
Difference Between jsp include directive and include action element.