hi all~
Please answer me ...
QUESTION 107
[Exhibit]
1. package com.Certkiller;
2.
3. public class Product {
4. private
String name;
5. private double price;
6.
7. public Product() {
8. this ("Default", 0.0 );
9. }
10.
11. public Product(String name, double price) {
12. this.name = name;
13. this.price = price;
14 }
15.
16. public String getName() {
17. return name;
18. }
19.
20. public void setName(String name) {
21. this.name = name;
22. }
23.
24. public double getPrice() {
25. return price;
26. }
27.
28. public void setPrice(double price) {
29. this.price = price;
30. }
31. }
Given :
<form action = "create_product.jsp">
Product Name : <input type="text" name="prodName"/><br>
Product Price : <input type="text" name="prodPrice"/><br>
</form>
For a given product instance, which three
jsp:setProperty attributes must be used
to initialized its properties from the HTML form? (Choose three)
A. id
B. name
C. type
D. param
E. property
F. reqParam
G. attribute
QUESTION 144
A JSP page needs to set the property of a given JavaBean to a value that is
calculated with the JSP page.
Which three jsp:setProperty attributes must be used to
perform this initialization? (Choose three)
A. id
B. val
C. name
D. param
E. value
F. property
G. attribute
QUESTION 155
Given the definition of MyObject and that an instance of MyObject is bound as a session attribute:
package com.example:
public class MyObject implements javax.servlet.http.HttpSessionBindingListner {
// class body code here
}
Which is true?
A. Only single instance of MyObject may exist within a session.
B. The unbound method of the MyObject instance is called when the session to which it is bound times out.
C. The com.example.MyObject must be declared as a
servlet event listener in the web application deployment descriptor.
D. The value Unbound method of the MyObject instance is called when the session to which it is bound times out.