Forums Register Login

what is the output?

+Pie Number of slices to send: Send
public class TestTag extends BodyTagSupport{
public int doStartTag()throws JspException{
try{
JspWriter out=pageContext.getOut();
out.println("Customize");
}//try
catch(IOException ioex){}
return(EVAL_BODY_BUFFERED);
<prefix:tagname>
hello
</prefix:tagname>
+Pie Number of slices to send: Send
I guess its going to be just:
Customize
The output is so because BodyContent is not explicitly written into the prevoius out stream in the doEnd() method like
this.getBodyContent.writeOut(pageContext.getOut()).
I am not sure about the answer and somebody please correct me if i am wrong.
Thanks in Advance
George
Switching from electric heat to a rocket mass heater reduces your carbon footprint as much as parking 7 cars. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 403 times.
Similar Threads
Parsing attribute "xsi:nil"
Problem while Tag lib Up gradation
Doubt
EVAL_BODY_BUFFERED behavior
Body-content of TLD/tag ?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 03:49:59.