Which three jsp:setProperty attributes must be used to initialize its properties from the HTML form?

Given:
10. <form action=’create_product.jsp’>
11. Product Name: <input type=’text’ name=’prodName’/><br/>
12. Product Price: <input type=’text’ name=’prodPrice’/><br/>
13. </form>
For a given product instance, which three jsp:setProperty attributes must be used to initialize its properties from the HTML form? (Choose three.)
package com.example;
public class Product{
private String name;
private double price;
public Product(){
this("Default",0.0);
}
public Product(String name,double price){
this.name=name;
this.price=price;
}
public String getName(){
return name;
}
public void setName(String name){
this.name=name;
}
public double getPrice(){
return price;
}
public void setPrice(double price){
this.price=price;
}
}
A. id
B. name
C. type
D. param
E. property
F. reqParam
G. attribute

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.