<% String imagepath="D:\work\dbUpdate\src\main\webapp\newyzm.png"; %> <img src="<%=imagepath+"?rand="+(new java.util.Random()).nextInt(10000)%>" />