This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes doubt in Enthuware mock answer Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "doubt in Enthuware mock answer" Watch "doubt in Enthuware mock answer" New topic
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: doubt in Enthuware mock answer
 
Similar Threads
Tag
unable to access the attribute in any of the container scope
Coding tag handlers or tag files together
Which one to select between Classic custom tag and Simple custom tag
Doubt in TagSupport (Classic Tag)