Or, you can just put the html code in the JSP page and change the link from
.html to .jsp. It will return a page as static html just the same. The nice
thing is, when its a jsp page, you can just copy/paste the html into the
jsp, AND include scripting. For example, we do something like:
<% if( value == 1 ) { %> .. some html here <% } else { %> .. different html
here <% } %>
This little bit allows two different bits of html to be displayed based on
some condition. This logic should be UI logic only.
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Abhishek sharan
Sent: Monday, May 01, 2000 2:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Can I get static HTML page from JSP?
Hi
Osamu Kondo wrote:
> Hi,
>
> Can I get static HTML files from JSP output?
> Does any one have simple solution?
>
i guess you can.All you have to do is include the static file in your jsp
as say <%@ include file="static.html" %>
Cheers
Abhishek Sharan
MTS,InterSolutions
Noida
>
> Thanks,
> Osamu
>
>
===========================================================================
> 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