File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
Web Component Certification (SCWCD/OCPJWCD)
Joined: Apr 06, 2004
Aug 05, 2004 10:17:00
What wud be the solution to this problem. anyone share the mothod of solving this.
Select any one
The contents of tag handler class MyPage. are
public class MyPage extends
public int doStartTag() throws
public int doAfterBody() throws
public int doEndTag() throws
the contents of tag library descriptor mypage.tld are :
the contents of jsp file are
<%@ taglib uri="page.tld" prefix="he"%>
On executing jsp file guess Hello would be printed how many times
A Not even Once
SCJP1.4, SCWCD1.4 (preparing)
Joined: Jul 12, 2004
Aug 05, 2004 12:07:00
Hi again !
I know what was your problem. You think 3 and it is not in the solution.
What a luck for you ! That means there's a trap.
Answer : 4 times.
It is doAFTERbody, not doSTARTbody.
Condition is evaluated after printed.
So, 10, 11, 12 are good but even 13 since AFTER it will not return to evaluate the body again.
Hope this help !
F.<br />SCJP, SCJD, SCWCD, SCBCD<br /> <br />Failure is not an option... It comes with the software bundle.
It is sorta covered in the
JavaRanch Style Guide
subject: Another Problem
Error Displaying Custom Tags in JSp
Unable to open tld : Error
Custom Tags - Repeating Tags
Mock exam question on Tag
Urgent: My JSP taglib problems and errors running on Tomcat 4.0
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015