I think I know what you mean, I'm doing the same thing. You have an HTML file thats used as an internal resource to be distributed with the bundle and you wish to pre/app-end this content to a servlet's output stream?
If thats the case the next question is are you just reading or are you in need of filelocks for synchronized writing? If you are just reading, you would use standard file reading procedures. Do this in a servlet that you initialize on startup, store it in a public static String in a global resources class/enum and you wont have to read anything again throughout the life cycle of the app.
If you need reads and writes on *file* in a specific order (gulp)
I really appreciate your prompt reply for this thread.
just making my earlier question more precise with example. domain-1 say, A.com is running web application under say tomcat domain-2 say, B.com is running as website under IIS now b.com contains many html files which needs to be published as footer by domain A.com's JSP pages.
As i know by default JSP can use jsp:include file = "url" to call other html files but it has it's own contraints :-
(1) Domain name cannot be part of url (2) Context root of the URL should be visible to the calling JSP.
How do i make the context root of the IIS based B.com website visible to A.com ? so that i can use the resources atleast static HTML pages of B.com on my will.