Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Struts
« Previous
Next »
Which of the Java bean tags is used to show the bean value on the web page?
Options
- < bean:define>
- < bean:message>
- < bean:show>
- < bean:write>
CORRECT ANSWER : < bean:write>
Discussion Board
bean:write
bean:write is used to show the bean value on the web page. It renders the value of the specified bean property to the current JspWriter. It renders to the current JspWriter as a String using the following ways:
1) If format attribute exists then value will be formatted on base of format string from format attribute and default system locale.
2) If in resources exists format string for value data type (view format attribute description) then value will be formatted on base of format string from resources.
3) Resources bundle and target locale can be specified with bundle and locale attributes. If nothing specified then default resource bundle and current user locale will be used.
4) If there is a PropertyEditor configured for the property value's class, the getAsText() method will be called or else toString() conversions will be applied.
Rohit Sharma 10-15-2014 02:39 PM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
Java Beginner (11)
Java (39)
Java (40)
Java (22)
Java (30)
Java (25)
Java (20)
Java (20)
Core Java (20)
Core Java (10)
Core Java (72)
EJB (20)
JDBC (20)
Applet (20)
Struts (21)
Servlets (20)
Java Web Services (20)
Javascript (40)
J2EE (10)
jQuery (46)
Advertisement
▲