0
You visited us 0 times! Enjoying our articles? Unlock Full Access!
Question

Which one of the following objects is passed to a Java Bean when one of its properties is set via a JSP action?
  1. Servlet Request
  2. Http Servlet Response
  3. hTTP Servlet Request
  4. Servlet Response
  5. None of these

A
None of these
B
Servlet Request
C
hTTP Servlet Request
D
Servlet Response
E
Http Servlet Response
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 objects is passed to a Java Bean when one of its properties is set via a JSP action?
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
Which one of the following molecules serves as a substrate for direct synthesis of ATP?
View Solution
Q5

Which one of the following serves as the birth canal?


View Solution