wood burning stoves 2.0*
The moose likes Servlets and the fly likes JSP Include Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP Include" Watch "JSP Include" New topic
Author

JSP Include

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I need to include a html file in jsp . this html file is retrieved from a bean. how do I set this html file in jsp include .
for eg
string s3 = bean.getsomething();
s3 is a html file like xxxx.html.
s3 will be populated at runtime thru scriplets.
I need to include this in JSP:include.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944

relative path
<%@ include file=htmloranyfile %> or
<%@ include file=s3 %>
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
A "cheat sheet" is available in PDF format from Sun on the JSP tags:
http://java.sun.com/products/jsp/syntax.pdf


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
 
wood burning stoves
 
subject: JSP Include
 
Similar Threads
How to include a HTML in JSP at runtime?
Why is Runtime.getRuntime().exec() not working in JSP?
include a html page in JSP file
This weeks giveaway
html within html?