what is difference between <bean:write>
and <bean: message> tag

Answer Posted / jane priscilla

Both are used to access the Java beans,but the mode of
application is different.ie.,

bean:message---> is a key to access the message property of
the particular field.(this can be done through
ApplicationResources.properties and no matter what the
model layer does)
for ex:Please give atleast one contact number!

bean:write---> is a key to display a data from the model
layer ie.,any data from the db can be displayed through
bean:write.

Is This Answer Correct ?    56 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What applications use apache struts?

491


How can we display validation errors on jsp page?

531


What are the ways in which duplicate form submission can occur?

502


What is the purpose of @after annotation?

584


Does apache tomcat use struts?

502






List the important attribute and elements of action mapping under struts.

524


Explain the necessity of empty tag?

596


Can we integrate struts with spring?

585


What is the purpose of @conversionerrorfieldvalidator annotation?

612


How do struts work?

518


What is the purpose of execute method of action class?

558


Name some useful annotations introduced in Struts2?

528


Which configuration file is used for storing jsp configuration information in struts?

539


How can we handle exceptions thrown by application in Struts2?

530


What is struts and springs in java?

524