Hi,
I am invoking an entity which takes data from the database and
displays it to the user. I invoke in a servlet and the servlet forwards
data to the jsp to display.
That's I use displaytag
servlet-
try{
//call the allitems method
balent=balBeanRemote.findAllBals();
HttpSession session = request.getSession();
session.setAttribute("balent",balent);
RequestDispatcher dispatcher = getServletContext()
.getRequestDispatcher("/Viewdisplay.jsp");
dispatcher.forward(request,
response);
//forward data to the Viewdisplay.jsp to present
//it to user
dispatcher.forward(request, response);
}
catch(Exception ex){
System.err.println("Can not show the all bale page");
}
}
jsp -
<display:table name="sessionScope.balent" uid="datum" defaultsort="1"
defaultorder="descending" pagesize="7" class="tabledata">
<display:column property="id" sortable= "true"
headerClass="sortable" title=" code"/>
<display:column property="name" 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=" price "/>
<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><img src="images/balpic"
alt="Picture"></img></display:column>
<display:column><img src="${images/balpic}"
alt="Picture"></img></display:column>
<display:column><img src="images/menjeans.png"
alt="Picture"></img></display:column>
</display:table>
Thanking you
eve
Date: Fri, 9 Oct 2009 19:19:09 -0500
From: emmecin...@gmail.com
To: displaytag-user@lists.sourceforge.net
Subject: Re: [displaytag-user] displaying images with displaytag issues
What does your <display:table> tag look like? Does it have an "id" attribute?
--
Turtle, turtle, on the ground,
Pink and shiny, turn around.
_________________________________________________________________
Access your other email accounts and manage all your email from one place.
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
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user