html includes in a JSP using IIS/WebLogic
Posted
by Striker
on Stack Overflow
See other posts from Stack Overflow
or by Striker
Published on 2010-04-20T19:51:09Z
Indexed on
2010/04/20
19:53 UTC
Read the original article
Hit count: 355
I have my IIS 6 server setup to process server side includes, we're also using the WebLogic ISAPI plugin for IIS. I have a simple html file that I'm trying to include in the JSP using the following include:
<!-- #include file="/pleaseWait/pleaseWait.html" -->
When I use the above line in a JSP I get an error message saying: "pleaseWait is not defined". From an HTML file on the web server it works fine. The include works in the HTML whether I use file or virtual. I can't use the jsp @ include because that's resolved at build time and the HTML file does not exist in the Java project. It's static content so it's on the IIS server.
In the past we've change the extension to .jsp and included the images and static content in the .war file....the problem with that is we now have 10 different versions of this code in our apps and not all of them look or function the same. This is an attempt to standardize and centralize the code for this feature across our apps.
Any ideas or suggestions?
© Stack Overflow or respective owner