| Author |
doubt in Enthuware mock answer
|
Pradeep Kumar
Ranch Hand
Joined: Sep 08, 2006
Posts: 108
|
|
Hello ranchers,
I have a doubt in solving one of the questions taken from Enthuware. The question number is 2 from standard test1.
I dint notice any difference in option 1 and option 4. Also why is that they are giving a "\" in the out.write() method. Can someone explain.
The question is like this
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?
option 1.
option 4
Thanks and regards,
Pradeep
|
Thanks and Regards, Pradeep Kumar
SCJP 1.6, SCWCD 5.0
|
 |
Pradeep Kumar
Ranch Hand
Joined: Sep 08, 2006
Posts: 108
|
|
I found the answer. The first option is a classic tag but does not return the int value whereas the 4th option is a simple tag so it need not return an int value.
Thanks and Regards,
Pradeep
|
 |
 |
|
|
subject: doubt in Enthuware mock answer
|
|
|