wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 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?

A
Servlet Request
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
hTTP Servlet Request
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Servlet Response
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
Http Servlet Response
No worries! We‘ve got your back. Try BYJU‘S free classes today!
E
None of these
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is D Servlet Response

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.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Levels of Management
BUSINESS STUDIES
Watch in App
Join BYJU'S Learning Program
CrossIcon