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

Can you explain aware interfaces in struts2?

789


What do you mean by actionmapping?

740


How can duplicate form submission be handled in struts 2?

720


What is an interceptor stack?

764


What is the purpose of @results annotation?

917


How we can install struts?

730


What are the advantages of spring mvc over struts mvc?

678


Give an example of validates method used to avoid errors.

715


Briefly tell the two kinds of form beans.

738


Give an example where struts tiles may be used?

750


What are pull and push mvc architecture and which architecture does struts2 follow?

703


Is struts efficient?

693


What is the use of forwardaction?

732


Will the struts tags support other markup languages such as wml ?

758


Name the different types of actions found in struts.

757