given tag : SimpleTag --> Handler --> SimpleTagHandler
ClassicTag --> Handler --> ClassicTagHandler
Both the tag are declare to be non empty and non tag dependent.
 question 17;
Both tags are declared to be non-empty in the TLD.
Both tags are declared to be non-empty and non-tag dependent in the TLD.
public void doStartTag() ?
You are creating a tag called SmartInputTag to replace the HTML <input> tag. If the request contains a value for a given parameter, this tag automatically puts that value in the input tag for that parameter. This tag is useful when the same form is redisplayed to the user if it fails validation. For example, if the user has already input 28 as the value of "age" parameter, your SmartInputTag will generate the following outout:
<input type="text" name="age" value="28" />
Which of the following is an appropriate tag handler method to achieve this?
From my knowledge There is no method "getAncesterWithClass" in BodyTagSupport or its superclass TagSupport. Infact the correct method is findAncestorWithClass.
Case 1: /Recipes/HopsList.do - 1,2,5 (My answer) 1,5,2 (Book answer)
Case 2: /Recipes/Modify/ModRecipes.do - 1,4,5(My answer) 1,5,4 (Book answer)
Consider two cooperating tags orchestra:band and orchestra:instrument, which are used as follows:
<orchestra:instrument name="trumpet" />
<orchestra:instrument name="violin" />
Given that band is implemented by BandTag and instrument is implemented by InstrumentTag, both of which extend BodyTagSupport.
The band tag needs to get the "names" (the value of the name attribute of instrument tags) of all the instruments that it contains. Which of the following approaches will you use?