public class body extends BodyTagSupport { public int doAfterBody() throws JspException { try { pageContext.getOut().print("how are you?"); }catch(IOException e) {} return SKIP_BODY; } } what will be printed out by the following part of a jsp page? <prefix:sufix> <i>Hello</i> </prefix:sufix>
Madhav Lakkapragada
Ranch Hand
Joined: Jun 03, 2000
Posts: 5040
posted
0
Hint: The default doStartTag() returns EVAL_BODY_BUFFERED. - satya
since there is skip_body in doAfterBody only "how are u" will be printed . am I correct [ March 28, 2002: Message edited by: shan java ]
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
please explain me the output...
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
prints nothing....
tony lee
Ranch Hand
Joined: Jan 21, 2002
Posts: 52
posted
0
The default doStartTag() returns EVAL_BODY_BUFFERED.
I tried by adding a doStartTag() which returns EVAL_BODY_INCLUDE, then it print "Hello how are you." We can find the return value matters. What does EVAL_BODY_BUFFERED mean
SCJP2, SCWCD
subject: can someone explain me the output for the code