here is the whole jsp code-

 

<%-- 
    Document   : Viewdisplay
    Created on : 28-Jan-2008, 18:14:46
    Author     : Y.kwarteng
--%>
<%--
<%...@page contentType="text/html" pageEncoding="windows-1252"%>--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd";>
<%--
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"; 
xmlns:display="urn:jsptld:http://displaytag.sf.net";>
--%>

  <jsp:directive.page contentType="text/html; charset=UTF-8" />
<%--

  <jsp:directive.page import="org.displaytag.sample.*" />
  
  <jsp:include page="inc/header.jsp" flush="true" />
    --%> 
   <%...@page import="java.util.*"%>
   <%...@page import="javax.ejb.EJB"%>
    <%...@page import="entityJB.*;"%>
    
    <%...@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

    <%...@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 

<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>


    <%...@taglib prefix="display" uri="http://displaytag.sf.net"--%>

     
    <%...@taglib uri="/WEB-INF/displaytag-el.tld" prefix="display"%>

   <link rel="stylesheet" type="text/css" href="mystyle.css">
         
      
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; 
charset=windows-1252">
        <title>Display items</title>
    </head>
    <body>
                <form method="get" action="Controllerserv">
                   <select name="viewitems">
                       <option>View All Discount </option>
                       <option>View All </option>
                       <option>Find item by description or Code</
                        
                  </select>
                        <input type="Submit" value="Get item details" 
name="search"/>
                 </form>
                 <table>
                    <%--table BORDER="1" CELLPADDING="1" CELLSPACING="1"--%>
                        
                        <display:table name="sessionScope.bent" uid="datum" 
defaultsort="1" defaultorder="descending" pagesize="7" class="tabledata" 
id="row">
                            <display:column property="bid" sortable= "true" 
headerClass="sortable"  title="code"/>
                            <display:column property="bname" sortable="true" 
headerClass="sortable" title="Name"/>
                            <display:column property="description" 
sortable="true" headerClass="sortable" title="Description"/>
                            <display:column property="colour" sortable="true" 
headerClass="sortable" title="Colour "/>
                            <display:column property="price" sortable="true" 
headerClass="sortable" title=" Itemprice "/>
                            <display:column property="balsize" sortable="true" 
headerClass="sortable" title=" Size "/>
                            <display:column 
property="departmentent.departmentname"  sortable="true" headerClass="sortable" 
title=" Department "/>
                            <display:column 
property="stockinforent.stockquanity" sortable="true" headerClass="sortable" 
title=" Stock quantity "/>
                            <display:column property="${row.balpic}" 
title="should be picture"/>

                        </display:table>

         </table>

         
    </body>
</html>

 

html generation -

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd";>


  
 
   
   
    
    
    

     

 

 

    

     
    

   <link rel="stylesheet" type="text/css" href="mystyle.css">
         
      
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; 
charset=windows-1252">
        <title>Display items</title>
    </head>
    <body>
                <form method="get" action="Controllerserv">
                   <select name="viewitems">
                       <option>View All Discount</option>
                       <option>View All </option>
                       <option>Find item by description or Code</
                        
                  </select>
                        <input type="Submit" value="Get item details" 
name="search"/>
                 </form>
                 <table>
                    
                        
                        Nothing found to display.

         </table>

         
    </body>
</html>

So where Im I going wrong?

 

Thanking you 

 

eve
 


Date: Fri, 9 Oct 2009 22:35:25 -0500
From: [email protected]
To: [email protected]
Subject: Re: [displaytag-user] displaying images with displaytag issues

You can't just reference "pic" like that.

Give your <display:table> tag an attribute like this:  id="row"

Then, instead of ${pic}, use ${row.pic}.


-- 
Turtle, turtle, on the ground,
Pink and shiny, turn around.
                                          
_________________________________________________________________
Learn how to add other email accounts to Hotmail in 3 easy steps.
http://clk.atdmt.com/UKM/go/167688463/direct/01/
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to