Explain the jsp:setProperty action.

Answer

It is used to give values to properties of beans that have been referenced beforehand.

<jsp:useBean id=”ABC”…/>

<jsp:setProperty name=”ABC”  property=”myProperty”…

 

jsp:setproperty is executed even if a new bean is instantiated or existing bean is found.

By adding </jsp.useBean> at the end of the code, the condition for execution is inverted i.e. It is not executed if existing object was found and only if a new object was instantiated.

All jsp Questions

Ask your interview questions on jsp

Write Your comment or Questions if you want the answers on jsp from jsp Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---