Sanjeev Kumar Sharma wrote:
> Thanks Dear!
> But what u told i already knew these thing.My problem is :
> suppose u retrive a body content from a JSP using getBodyContent().Now u
> have abodycontent object.Let the body(retrived) be "hello".I want to add
> "hey" to this(i mean manipulate this) .Now how should i do this and again
> set my body content to "hello hey".
> Hope u understand this
>
A BodyContent object is itself a JspWriter, so you can just write to it:
BodyContent myContent = getBodyContent();
myContent.println(" hey");
This is essentially what happens when you have nested content inside your tag:
<mylib:mytag>
hello hey
</mylib:mytag>
>
> bye
>
Craig McClanahan
===========================================================================
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