Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt in Enthuware mock answer

 
Pradeep Kumar
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Pradeep Kumar
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic