Monday, August 13, 2012

STRUTS : logic:notEmpty

"<"logic:notEmpty name=”beanName” property=”beanPropertyName”">"

"<"bean:write name=”beanName” property=”beanPropertyName”/">"

"<"/logic:notEmpty">"



Note : if you have DataBean.java class with userName as its one property variable, and if you gave one object of DataBean class i.e “dataBean” in request scope , then you could use that object as given below into the destination .jsp page.



"<"logic:notEmpty name=”dataBean” property=”userName”">"

"<"bean:write name=”dataBean” property=”userName”/">"

"<"/logic:notEmpty">"

No comments:

Post a Comment