Question

Which one of the following objects is passed to a Java Bean when one of its properties is set via a JSP action?

A
Servlet Request
B
hTTP Servlet Request
C
Servlet Response
D
Http Servlet Response
E
None of these
Solution
Verified by Toppr

Servlet Response objects is passed to a Java Bean when one of its properties is set via a JSP action.

A Java Bean is a java class that should follow following conventions: It should have a no-arg constructor. It should be Serializable. It should provide methods to set and get the values of the properties, known as getter and setter methods.

JSP actions are special XML tags which control the behavior of servlet engine. JSP actions allow you to insert a file dynamically, reuse external JavaBean components, forward the request to the other page and generate HTML for Java Applet Plugin.

JavaServer Pages often serve the same purpose as programs implemented using the Common Gateway Interface (CGI). But JSP offers several advantages in comparison with the CGI. Performance is significantly better because JSP allows embedding Dynamic Elements in HTML Pages itself instead of having separate CGI files.

Was this answer helpful?
0
Similar Questions
Q1

Which one of the following serves as the birth canal?


View Solution
Q2

Which of the following must be true?I N and O never serve on the same committee.II When N serves in a committee, J will serve on the same committee.

View Solution
Q3

Which of the following must be true?

I N and O never serve on the same committee.

II When N serves in a committee, J will serve on the same committee.


View Solution
Q4

The Intelligence Quotient (IQ) of a person is a score calculated based on his/her performance on standardized tests which serves as a measure of the overall intelligence. Which of the following is true about IQ?


View Solution
Q5

Which of these serves as a standard for agricultural products?

View Solution
Solve
Guides