• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

I do not know what's what....

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Kang Dae Chul:
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



Ans: b,d and e



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



Ans: c,e,and f


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.



Ans: d.
 
reply
    Bookmark Topic Watch Topic
  • New Topic