ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Designing JSP Custom Tag Libraries
Subject:   How to include jsp include directive in JspWriter
Date:   2007-07-17 23:03:12
From:   Madhukar29
I have my requirement like this

buffer.append("<table width="+tableWidth+" height="+tableHeight+">" +
"<tr>" +
"<td class="+cssTableBackGround+">" +
NBSP2+
"" +
"<img id='"+ID+"' border="+0+" src="+imageDown+" name='toggleImage'/> (\"javascript:simpleToggle('"+ADVANCED+"',) " +
NBSP2+
"<font class="+cssClass+"> "+
"Edit ChairPerson" +
"</td></tr></table>" +
"<div id='"+ADVANCED+"' style='background-color:#cccccc;display:none; overflow:hidden;height:95px;width:75%'>"+
"<%@ include file=\"advancedEpanded.jsp\" %>" +
"</div>");


JspWriter out = pc.getOut();
out.write(buffer.toString());

i need to include another jsp in the code.
is there a way to do it?
i tried with jsp include also. but i canot see the content ont the screen.