thank you for your reply Ron........ .i did like this in my action class Connection con=ko.getCon(); PreparedStatement prep=con.prepareStatement("select C_KTR,I_KTR,N_KTR from tmkantor"); ResultSet rs=prep.executeQuery(); Vector dt=new Vector(); while(rs.next()) { Data dat=new Data(); dat.setKode(rs.getString(1)); dat.setNomor(rs.getString(2)); dat.setNama(rs.getString(3)); System.out.println(" data = "+dat.getKode()); dt.add(dat); } request.getSession().setAttribute("dt",dt);
and this is piece of my jsp code <html:form action="DpAction"> <display:table name="${dt}" /> <display:column property="kode"></display:column> <display:column property="nomor"></display:column> <display:column property="nama"></display:column> </display:table> </html:form> this is what i got when i run it. Kode Nomor Nama Nothing found to display. is there anything wrong with my code ? ----- Original Message ----- From: "Ron Grabowski" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, June 18, 2004 11:46 AM Subject: Re: Integrating displaytag with struts > --- Hari Saptoadi <[EMAIL PROTECTED]> wrote: > > Hi all..... > > i want to use displaytag for replace logis:iterate tag > > is it "name" in display:table tag have same function with > > "property" in logic:iterate ? > > if not, how can i set data that i want to display in my jsp ? > > > > The front page of their website says: > > http://displaytag.sourceforge.net/ > " > <display:table name="${requestScope.object.property}"> > " > > Here is a link to their PDF manual: > > http://displaytag.sourceforge.net/displaytag.pdf > > Another example would be: > > // in your Action class > List productList = generateProductList(); > request.setAttribute("productList",productList); > > <!-- on your JSP page --> > <display:table name="${productList}" /> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]