html - Refresing an image in jsp without reloading the whole page -
<c:if test="${commandobject.function.functioncode =='elog welcome'}"> <td align="left" width="28"> <img src="assets/images/welcome/kewill_logo_new.jpg" width="100" height="28" alt="logo" position = "center"/> </td> </c:if>
i using above condition put image on jsp, image should removed if above condition not satisfied. problem image not removing, remains there when condition not satisfied when jsp loads next time.
but once refresh page image goes. want image disappear whenever condition not true without having refresh whole page. how can that? working solution!!!
use following line of code :
<%timeunit.seconds.sleep(5); %>
it reloads page once 5 seconds i.e. provide time delay of 5 seconds on action performed.. used solve similar kind of problem in project..difference removing image , forming image on action of button click..
Comments
Post a Comment