Hi!
Can u tell me kevin how should i chang the content i read in bodycontent
bye
At 09:30 AM 8/25/00 +0100, you wrote:
>Craig said the exact opposite!
>
>If you can't make changes what is the point of being a BodyTag!!!
>
>If you read the help for BodyCOntent you'll see that it is a JspWriter with
>an odd property - you can also read from it.
>
>To read from a BodyContent call getReader() or getString()
>To Clear a BodyContent call clearBody()
>
>and to write to it call one of the numerous write() or print() methods!!
>
>Kevin Jones
>DevelopMentor
>www.develop.com
>
>> -----Original Message-----
>> From: A mailing list about Java Server Pages specification and reference
>> [mailto:[EMAIL PROTECTED]]On Behalf Of Sanjeev Kumar Sharma
>> Sent: 25 August 2000 05:12
>> To: [EMAIL PROTECTED]
>> Subject: Re: Using setbodyContent()
>>
>>
>> Hi!
>> U mean to say that we can't make any changes in the BodyContent.
>> bye
>> >
>> >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
>> >
>> >
>> Sanjeev Kumar Sharma
>> Velocient Technologies Ltd.
>> F-2/B-1, Mohan Co-operative Industrial Estate,
>> New Delhi-110044.
>> Off:- # 91-6945226/7/8-120
>> Res:- # 91-4518858
>>
>> ==================================================================
>> =========
>> 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
>
>===========================================================================
>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
>
>
Sanjeev Kumar Sharma
Velocient Technologies Ltd.
F-2/B-1, Mohan Co-operative Industrial Estate,
New Delhi-110044.
Off:- # 91-6945226/7/8-120
Res:- # 91-4518858
===========================================================================
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