How to Use <bean:write> tag in Struts 1.2.
In name attribute, what value have to be used? Is bean name your property name?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Javadoc for
<bean:write>:In essence, if you have a JavaBean (with getters and setters),
by setting
<bean:write name="person" property="age" />, you’re telling Struts to first findpersonobject first fromPageContextscope. If not found, thenrequest, thensession, thenapplicationscope.The
property="age"attribute (from<bean:write />tag), will then call the getter methodgetAge()from thePersonobject (irrespective of whether there’s an instance variable calledageon the bean).Hope this helps.