• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP Include

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

relative path
<%@ include file=htmloranyfile %> or
<%@ include file=s3 %>
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A "cheat sheet" is available in PDF format from Sun on the JSP tags:
http://java.sun.com/products/jsp/syntax.pdf
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic