Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Calling JSP in <img src="myimg.jsp"/>

843836Sep 15 2003 — edited Sep 15 2003
Hi,
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.,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 13 2003
Added on Sep 15 2003
5 comments
95 views