Forum Stats

  • 3,875,743 Users
  • 2,266,960 Discussions
  • 7,912,331 Comments

Discussions

How to Display Non Primary Binary Property (Image) in JSP

653189
653189 Member Posts: 101
edited Sep 13, 2008 9:20AM in WebLogic Portal
Hi,

I have non primary property called "image" and it is binary type.
I have uploaded image(jpg) file for that property.(Not using content Editor), And its by Using upload File option.

But suggest me how to display that image in the JSP .
I am trying display using

<cmwsrp:getBinaryPropertyURL nodePath="BEA Repository/DeleteTestFolder/deleteContent//image"/>

But its displaying only URL coresponding to this path.

Pls suggest how to display non primary -binary property image file in JSP

Srinivas

Answers

  • 648793
    648793 Member Posts: 96
    You can use ShowProperty to show your image.

    <img src="<%=request.getContextPath() + "/ShowProperty" +"BEA Repository/DeleteTestFolder/deleteContent//image"%>">

    Here is the javadoc http://e-docs.bea.com/wlp/docs100/javadoc/com/bea/content/manager/servlets/ShowPropertyServlet.html

    Hope it helps
This discussion has been closed.