Multiple choice technology programming languages

A bean with a property color is loaded using the following statement What happens when the following statement is executed. Select the one correct answer.

  1. This is incorrect syntax of <jsp:setProperty/> and will generate a compilation error. Either value or param must be defined.

  2. All the properties of the fruit bean are initialized to a value of null.

  3. All the properties of the fruit bean are assigned the values of input parameters of the JSP page that have the same name.

  4. All the properties of the fruit bean are initialized to a value of *.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

When property="*" is used in , it automatically matches request parameter names to bean property names and sets all matching properties. This is a shorthand for bulk property setting from HTTP parameters.