Calling JSP in <img src="myimg.jsp"/>
843836Sep 15 2003 — edited Sep 15 2003Hi,
I had typical problem.I got some images stored in a directory on my Server.And Iam using the <img src="/dir1/dir2/imgdir/myimg.jpg"/>
But,the user can access the images directly with out using my JSP program using http://localhost:8080//dir1/dir2/imgdir/myimg.jpg" ,which i dont want to give this option to the user.He should able to access through my JSP page only.
Is there anyway that i can hide the "Path" in the src from the user,but still display the image from my JSP page.
Or do i need to write a JSP program which reads the image and displays
by calling it in Calling JSP in <img src="myimg.jsp"/>,if so how to call the "myimg.jsp" page in the <img/>.
Can anyone give me an idea what to do so that i can hide the Path from the user.Iam using Tomcat3.3.
Thanks in Advance..
Rao.,