Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

rendering String as jsp

7 views
Skip to first unread message

Kalidhakani J

unread,
Oct 8, 2013, 1:26:38 AM10/8/13
to
Hi all,


I am using jsp with struts2.
I have a String property in my action class.

private String htmlString = "";

I populate its value as follows.

for (int i=0;i<3;i++)
{
htmlString += "<div id="+i+">";
htmlString += "<p>";
htmlString += "<jsp:include page=\"/common/jsp/check.jsp\">";
htmlString += "</p>";
}

wen i try to render this "htmlString" in my jsp, it creates "div" , "p"perfectly. But <jsp:include page=\"/common/jsp/check.jsp\"> is not happening.

Any help would be appreciated.

Thanks in advance.
0 new messages