Display image with display tag

Hi,
I am using display tag but I don't know how to display the image in the display tag....let me explain how I fetched data and what I want to display..
1. I kept all the images in the folder "userfiles" on the server and saved the url in the table(database).
2. I fetched all the rows from table using the select statement and saved it into bean class and then to the list as....
while(rs.next()) {
String a="../userfiles/"+rs.getString(4)+"";
System.out.println(a);
list.add(new newsFetchBean(rs.getInt(1),rs.getString(2),rs.getString(3),a));
everything is working fine and I am able to show data in the display tag on my jsp page using ...
<display-el:table id="table1" pagesize="20" cellpadding="0" cellspacing="1px" name="newsList" requestURI="" class="displayTag" sort="list" export="true">
<display-el:caption style="font: bold 1em Arial, Sans-Serif;padding: 15px 0 0 0;color:#009933;">Inquiries Received From Latest To Old</display-el:caption>
<display-el:column title="Heading" property="vnews_heading" sortable="true" headerClass="sortable"></display-el:column>
<display-el:column title="News Content" property="vnews_content" sortable="true" style="width:200px;" headerClass="sortable"></display-el:column>
Problem: I need to show images form "userfiles" folder for whom URL is being fetched from the database as...
String a="../userfiles/"+rs.getString(4)+"";
System.out.println(a);
list.add(new newsFetchBean(rs.getInt(1),rs.getString(2),rs.getString(3),a));
in the upper statements....
Please tell me how to show images....
I tried .....
<display-el:column title="Image" sortable="true" style="width:250px;" headerClass="sortable" ><img src="<c:out value="#{table1.vnews_imageURL}"/>"></display-el:column>
but no success and I searched a lot for it....may be I am wrong in my search but please help......

Open the page in your browser.
View the generated HTML source.
Take a look at the <img> element.
Does its 'src' attribute point to a valid URL? Can you request that URL independently?

Similar Messages

  • Finding images with keyword tags in PE 12 Organizer

    I am experiencing difficulties while finding images with keyword tags.
    I am using the Organizer of Photoshop Element 12 (French version) and I think I follow the procedure described in “ADOBE ELEMENTS ORGANIZER Help and tutorials” (page 168 in the English version or alternatively 150 in the French one), i.e. :
    In the Keyword Tags panel, I click the ">" symbol of the keyword of which I want to know the relevant images
    Whatever the search option (Select either Hide Best Match Results Show/Hide Close Match Results, or Show/Hide Results That Do Not Match), I am not able to select and show only the Best Match Results.
    Please note also that the Tip
    To automatically display close matches after a search, choose Edit > Preferences > General, or Adobe Elements Organizer 11 > Preferences > General, and select Show Closely Matching Sets For Searches, and then click OK.
    does not seem to work with Adobe Elements Organizer 12

    Thks
    You are right, my problem is to select only the close matches.
    Based on your comment, I am afraid it’s one of the recurring problem in PE whatever the version (PE11 or PE12)
    De : MichelBParis 
    Envoyé : vendredi 30 mai 2014 08:40
    À : Michel ROUSSEAU
    Objet :  Finding images with keyword tags in PE 12 Organizer
    Finding images with keyword tags in PE 12 Organizer
    created by MichelBParis <https://forums.adobe.com/people/MichelBParis>  in Photoshop Elements - View the full discussion <https://forums.adobe.com/message/6420729#6420729>

  • Elements 11 fails to display tagged people

    I upgraded from version 8 to 11. I tagged many images with people tags. I had 4 people tags. After importing, the images still show the tags. However, under people view only two of the tags resulted in stacked photos. The other two tags report "no people exist in this group" if the tag group is selected. Why aren't the photos stacked for the people tags I prviously had tagged? How do I find all images with each of hte tags?

    In Media View, please check View >> Show People in Tag Panel.
    All you people categories and tags from PSE8 will be shown in right panel in Media View.
    Thanks
    Andaleeb

  • Problem with display tags (not accepting inner tags)

    Hi guys ,
    I am using display tags which is fine but i had a problem with anchor tag and the jsp display tag.
    <display:column title="Row_Id" >
    ' target="-blank" onclick=""><c:out value="${row_rowNum}"/>
    </display:column>
    here i got the exception:
    The value of attribute "href" associated with an element type "a" must not contain the '<' character.
    here if jstl is not used then how to put my value in anchor tag
    please help me.

    Can you use EL directly:
    <a href="example.jsp?id=${row.id"/"></a>

  • How can i Display images with may own table

    Hi
    I want display images with my own table. How can I use in this query.
    SELECT    '<a href="#" onclick="javascript:'
           || 'getImageHeight(''my_img'
           || '#ROWNUM#'');javascript:redirect'
           || '(''f?p=&APP_ID.:212'
           || ':&SESSION.:DISPLAY:NO::P212_IMAGE_ID:'
           || ID
           || ''');">'
           || '<img src="#IMAGE_PREFIX#edit.gif" '
           || 'alt="Edit"></a>' ID,
              '<img id="my_img'
           || '#ROWNUM#" src="#WORKSPACE_IMAGES#'
           || filename
           || '"/>' image
      FROM wwv_flow_filesThanks
    Nr
    Edited by: user10966033 on Sep 28, 2009 1:41 PM

    You don't use #workspace_images# since that is for STATIC files, not images in a table..
    see this thread for help: Re: Display image from blob
    Thank you,
    Tony Miller
    Webster, TX

  • Image with foreign characters in name won't display

    I have an image on my drive whose name has foreign characters ("c�pia de frente.jpg"). To display the image my JSP reads the image name from the database and generates the following html:
    <img src="../pictures/c�pia de frente.jpg">The page then displays a broken image icon for this image. Images in the same list which do not have foreign chars get displayed accurately. When I choose "show image.." in my browser I see that the image name has been rewritten into the following: c%C3%B3pia%20de%20frente.jpg. The rewriting that will display the image is instead c%F3pia%20de%20frente.jpg. I found the correct rewriting on another of my JSP where the image with the foreign chars actually gets displayed correctly although the code to generate the html is the same on both pages and looks something like this (simplified):
    <logic:iterate id="listelement" name="list" property="rows" scope="request" type="org.apache.commons.beanutils.DynaBean">
    <%         
    out.write("<img src=\"../pictures/"+listelement.get("name").toString()+"\">");
                             %>  <br>                     
                            </logic:iterate> Every image that doesn't have foreign chars in its name gets displayed accurately but images with foreign chars in their names won't display. What am I doing wrong?
    Thanks
    Niklas

    Thanks, but it doesn't seem necessary to replace foreign characters. It works without replacing in one place but not in another which is confusing. I think it is something with the enconding but can't see what the difference is between the working and non-working code. In both pages I have put <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">I'd greatly appreciate any more suggestions to solve this problem.

  • Mail will not display images with .jpeg extension. .jpg works fine. (displays in place when opening the email. What plug-in would correct this?

    Mail will not display images with .jpeg extension. .jpg works fine. (displays in place when opening the email. What plug-in would correct this?

    If you think you're insane now, try maintaining those pop up menus.
    As far as I know, these menus have not been updated since FW 8, so 
    they are at least two versions old.
    Save yourself a lot of grief by avoiding those menus. There are many 
    other products on the market which do a much better job of creating 
    and maintaining this type of navigation structure.
    Read this link before you climb any higher on this slippery slope:
    http://apptools.com/rants/jsmenu.php
    There was another blog post by the fellow who originally wrote the pop 
    up menu feature, but I can't seem to locate it. Even he says stay away 
    from them.
    Not the answer you probably want, but I hope it helps, nonetheless.
    Jim Babbage

  • Displaying a PDF file with adf tags

    hello,
    can anyone give me some advice in how to display a pdf file with adf tags.
    many thanks

    http://technology.amis.nl/blog/?p=1182

  • How can I Display a Image with tiff format in Jpanel?

    How can I Display a CMYK Image with tiff format in Jpanel ? Not in ScrollingImagePanel? Thank you in advance.

    Why nobody can help me?I am very anxious!help me,please!

  • Display Tag use with JSF Data Tables

    Has Anyone got to work the Display tag with JSF
    I have got soo far to display the table by using Display tag with JSF dataTables but unable to have a link or command button to navigate
    Theirs a online hack available for the same .....But i am unable to get to run it
    Has anybody got the solution for the same

    Hi ,
    I am trying to do the same but I have no success.
    My code is
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:jsp="http://java.sun.com/JSP/Page"
         xmlns:c="urn:jsptld:http://java.sun.com/jstl/core"
         xmlns:display="urn:jsptld:http://displaytag.sf.net">
    <jsp:directive.page contentType="text/html; charset=UTF-8" />
    <jsp:directive.page import="fi.tavutaito.hibernate.User,java.util.*,org.displaytag.tags.TableTag" />
         <h:dataTable value="#{sessionScope.users}" var="user" style=""/>
         <display:table name="sessionScope.users" class="" id="user">
              <display:column property="username"/>
              </display:table>
    </html>
    where users is a List Obj in the session. In output I receive just this page.
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="urn:jsptld:http://java.sun.com/jstl/core" xmlns:display="urn:jsptld:http://displaytag.sf.net">
    <jsp:directive.page contentType="text/html; charset=UTF-8"></jsp:directive.page>
    <jsp:directive.page import="fi.tavutaito.hibernate.User,java.util.*,org.displaytag.tags.TableTag"></jsp:directive.page><table style="">
    <tbody>
    <tr>
    </tr>
    <tr>
    </tr>
    </tbody>
    </table>
         <display:table name="sessionScope.users" id="user">
              <display:column property="username"></display:column>
              </display:table>
    </html>
    It seems to that display tags are not parsed...
    Do zou have an idea?
    Thanks a lot in advance
    beppoz

  • How to call javascript function with dynamic data in display tag

    Hi,
    Iam new to pagination concept. Iam using display tag to display rows in jsp by strtus.
    I have a problem when calling the javascript function using ahref in attribute in display tag.
    <bean:define name="form1" property="EditDetails.List" id="ListDisplay"/>
    <display:table name="pageScope.ListDisplay" cellpadding="0" cellspacing="1" pagesize="10" partialList="false" size="listSize" requestURI="">
    <display:column property="poNo" href='javascript:searchEditDetails("./submitOrder.do? actionID=getMISLoadEdit&poNumberSel=<%=((com.po.bean.EditDetails)poListDisplay).getNo()%>&statusIdSelected=<%=((com.po.bean.EditDetails)ListDisplay).getStatusId()%>")'
    title="Number"/>                         
    <display:column property="strDate"title="Date" />
    <display:column property="orderValue"title="Order Value(INR)"/>
    <display:column property="stringRequestedDeliveryDate"title="Suggested Delivery Date"/>
    <display:column property="statusDescription" title="Status" />
    </display:table>
    The above code display the data in row format is working fine when I click the No It thow javascript error and its not redirecting to the other page.
    When I try this with ordinary struts its working fine the code is:
    <logic:iterate id="polist" name="Form1" property="EditDetails.List" indexId="i" type="com.bean.EditDetails">
    <tr>
    <td ><a href="javascript:searchEditDetails("./submitOrder.do?actionID=getMISLoadEdit&NumberSel=<%=((com.bean.EditDetails)polist).getNo()%>&statusIdSelected=<%=((com.bean.EditDetails)polist).getStatusId()%>")"><html:hidden name="polist" property="No" write="true" /></a>     </td>
    <td><html:hidden name="polist" property="strDate" write="true" /></td>
    <td><html:hidden name="polist" property="orderValue" write="true" /></td>
    <td><html:hidden name="polist" property="stringRequestedDeliveryDate" write="true" />     </td>
    <td><html:hidden name="polist" property="statusDescription" write="true" /></td>
    </tr>
    </logic:iterate>
    Please help me how to call javascript with dynamic data.
    Thanks in advance

    The ADF Mobile Container Utilities API may be used from JavaScript or Java.
    Application Container APIs - 11g Release 2 (11.1.2.4.0)

  • Pixelated images (with High Quality Display turned on)

    Here's my problem: The images look sharp on the internet, but when I download them, place them in Indesign and print them, the look pixelated!
    Take this one for example: http://media.smashingmagazine.com/images/typefaces/productus.gif
    It's resolution is 72 ppi. But when I place it onto the Indesign A4 page (or Letter format for that matter) it occupys almost entire width of the page.
    Why is it so? Why is it so big by default without enlarging it? It's kinda logic that a small 72 ppi image stretched across the whole page will appear blurry when printed on 300 dpi printer.
    So how can I set the indesign page to 300 ppi/dpi so images with lower restion will appear smaller when placed on the page and - will be printed sharp?

    mike.n03 wrote:
    Where can you specify this preference?
    And you mean there's a script for InDesign? Wow, it would be cool to get it. So far I solved that problem by recording an Action in Photoshop and than apply it to all the images using Batch command.
    Preference is down at the bottom of the File Handling section ...  Check the bos to preserve dimensions and a the relinked file will be scaled back to the same size in ID. Uncheck, and the scale percentage will be preserved.
    Almost anything is scriptable in ID (but I don't write them). I recall a script that was posted a year or two ago that would allow you to select an image and type a desired effective resolution into a dialog. The image would get scaled to reach that effective ppi. Your batch action in Photoshop is fine, and useful if you want to palce everything at 100%, but it isn't required to change the resolution in Photshop to achieve what you want. Scaling in ID is exactly the same thing as changing the resolution without resampling in Photoshop. No pixels are added, removed or altered -- only their dispalyed size is changed. If you want a script to set all images to 300 ppi effective resolution, you should probably pay a visit to the scripting forum.

  • Layered image with blending mode won't display properly in Indesign CS3

    Hello,
    I'm having trouble placing a layered psd and/or tiff with blending modes into my indesign cs3 document. Basically I have a flattened image with a shadow on a white background. I've had to doctor the image a bit in photoshop and I've used the multiply blending mode to remove the white background. (I'm trying to get around having to clip the image and having to recreate the shadow). Anyone know how I can drop my layered image into indesign and have it keep the blending modes I've applied in photoshop?
    Any help would be much appreciated.

    I'll try and do my best to describe what it is I'm doing.
    I've started out with a “flat” image of a product on a white background with a shadow on it. I need to make the background transparent and so that all I’m left with is the product with the shadow on a transparent background.I want to be able to place this image over another image in indesign and have the background remain transparent.
    On the first layer I have a clipped out version of the product with no background (All by itself with no background or shadow). On the second layer I have the original “flat” image with the shadow and white background. On this layer I’ve used the multiply blending mode to remove the white background.
    Now that I have the product on one layer by itself and the product and shadow on layer two with the multiply blending mode I have an image of the product with a shadow with no background. When I place this into indesign, my image shows up with the white background as if the multiply blending mode isn’t applied.
    I’ve tried this on other images. It doesn’t appear that it lets you bring an image over with that blending mode. It's like I'd have to bring over a clipped image and then place that on top of my original image with a blending mode placed on it "in" Indesign.
    Hope that make sense?

  • Error message: when downloading data from 2nd display tag table

    I am using disaply tag to display data in jsp page. I am using three different section to display the data with three display tag table. The data is displaying correctlly. The display tag downlod excel sheet is working for first display tag table. When i am trying to download data from 2nd and 3rd display tag table i am getting following error:
    Exception: [.TableTag] Unable to reset response before returning exported data. You are not using an export filter. Be sure that no other jsp tags are used before display:table or refer to the displaytag documentation on how to configure the export filter (requires j2ee 1.3).
         at org.displaytag.tags.TableTag.writeExport(TableTag.java:1438)
         at org.displaytag.tags.TableTag.doExport(TableTag.java:1364)
         at org.displaytag.tags.TableTag.doEndTag(TableTag.java:1215)
         at org.apache.jsp.InstalBase_005fReport_jsp._jspService(InstalBase_005fReport_jsp.java:974)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:595)
    As per the Exception i don't have any jsp tag before the display tag.
    Please help me if any body has any solution for the above exception.
    Thanks in advance.
    Smruti..

    See also http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • How to USE Display Tag in my jsp pageInMy JDBC program in NetBeans 5

    I want my program 2 fetch Data from the database and display in the nice format provided by the Display Tags.. I have simple JSP pages, without using any Beans. I m running netBeans 5.
    What is the Solution to display my Table data in JSP display Tags facility.
    reply soon ...
    tht help me a lot

    Hello,
    I am not sure how far you got with this display tag. I had issues added the displaytag lib and the dependencies to my library. On the right-hand side of Netbeans, under Project, under the war directory of the application, I was able to add the libraries to my project. It stop some errors I have been having for so long.
    Still, I am not able to display my data using display. How far this you did with this project? Have you resolve the problem so far. I know it's been a long time.
    Thanks
    eve

Maybe you are looking for