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

Are actions thread safe?

757


Explain the difference between dispatchaction and lookupdispatchaction in struts?

6081


What is the purpose of @key annotation annotation?

852


What’s the difference between struts and turbine? What’s the difference between struts and espresso?

760


What is the purpose of @requiredstringvalidator?

760


Can you explain the directory structure for a struts folder in brief ?

749


What is the purpose of @key?

794


What should be the name of xml file used for validation in struts?

752


What are the benefits of the struts system?

802


Explain about struts?

750


What is the difference between shocks and struts?

715


What are different ways to create Action classes in Struts2?

814


Why do we need mapdispatchtoprops?

684


What do you mean by tiles in struts?

768


Provide some important Struts2 constants that you have used?

793