For the static html page both include mechanisms will work. An Error 500 is
an internal server error. Most likely the URI is incorrect. For an excellent
explanation of the differences between an include action and directive check
out:

http://java.oreilly.com/news/jsptips_1100.html

Without knowing your configuration, I would guess that the URI is incorrect
in your include action.

Justy

----- Original Message -----
From: "Michi Reutter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 22, 2001 2:05 AM
Subject: include html-file


> I want to inlcude a html-file using either
> <jsp:include page="/html/header.html" flush="true"/>
> or
> <%@ include file="html/header.html" %>
>
> 2 questions:
>
> 1.
> why does this not work?
> --
> <%= "TEST"%>
> <jsp:include page="/html/header.html" flush="true"/>
> --
> I get Error 500 ..
>
> but this works:
> <%= "TEST"%>
> <%@ include file="html/header.html" %>
>
> 2.
> how to implement something like this:
> <%! Properties p = (new Property()).readP(); %>
> <jsp:include page=p.getProperty("HTMLPath") +  "/header.html"
flush="true"/>
>
> thanks
> michi

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to