The example I sent used INCLUDE as an action , try it as a directive

Here's a table that shows the difference between dynamic and static include

Include                               Syntax                           Done When
 Include Content                 Parsing

Directive                         <%@ include file ="filename"%>
Compilation Time  Static                                      Parsed by
                                                                  Container

Action                               <jsp:include page="filename"/%>  Request
Processing Static or               not parsed but
Time                                Dynamic                          included in
place



Santosh







Mutahar Qayum <[EMAIL PROTECTED]> on 08/18/2000 03:21:07 PM

Please respond to A mailing list about Java Server Pages specification and
      reference <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Santosh Daryani/IT/Aon Consulting)

Subject:  Re: Includes in JSP



its just adds a html page, if i try to add page with JAVA code it doesnot
work...
need help

-----Original Message-----
From: Daryani Santosh [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 18, 2000 10:58 AM
To: [EMAIL PROTECTED]
Subject: Re: Includes in JSP


You can use jsp:include
Here's a simple example that may give you some idea


<html>
<head>
<title>Demo JSp testing JSP:INCLUDE declarative</title>
</head>
<body bgcolor ="black" text="white">
<h1> JSP:INCLUDE Feature Demo</h1>
<%
//what ever you want here

//process some other pages
%>


<jsp:include page="jsp1.jsp" flush="true"/>
<jsp:include page="jsp2.jsp" flush="true"/>

<%
//back to your main page
%>

</body>
</html>

Santosh










Mutahar Qayum <[EMAIL PROTECTED]> on 08/18/2000 01:22:50 PM

Please respond to A mailing list about Java Server Pages specification and
      reference <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Santosh Daryani/IT/Aon Consulting)

Subject:  Includes in JSP



I have been includes files thru this command in ASPs, can you tell me what
is similar command in JSP for that. It helped me a lot in ASP,
the command in ASP is

<!--#include virtual="myfile.asp"-->

thanks

Mutahar

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to