bhallarahul -4 Light Poster

hello every one
i trying to display image in jsp by using following code

<% System.out.println("from the view page");
String imagePath =(String) request.getAttribute("path"); 
System.out.println(imagePath); 

%>
<img src="<%=imagePath %>"/>

variable imagePath shows the correct path where imge is store but it doenot display any image please suggest me some way to display image

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.