[ 
http://jira.codehaus.org/browse/DISPL-372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

fabrizio giustina closed DISPL-372.
-----------------------------------

    Resolution: Cannot Reproduce

please use the user list for this kind of questions

> Database Table
> --------------
>
>                 Key: DISPL-372
>                 URL: http://jira.codehaus.org/browse/DISPL-372
>             Project: DisplayTag
>          Issue Type: Bug
>          Components: Export, Paging/Sorting, Tag Library
>            Reporter: BuntyIndia
>            Priority: Critical
>
> i want to display the content of my database usin DisplayTag Pagination...m 
> using NetBeans5.5 with tomcat 5.5.16. 
>  
> Please Help.... 
>  
>  
> Following is my code.... 
>  
> <jsp:scriptlet> 
> List rows1= null; 
>  
> try { 
> ResultSet rs; 
> Statement stmt; 
> Class.forName("com.mysql.jdbc.Driver"); 
>  
>  
> Connection conn = 
> DriverManager.getConnection("jdbc:mysql://localhost:3306/test?user=root&amp;password=passit");
>   
>  
> String sql = "SELECT * FROM gc"; 
> stmt = conn.createStatement(); 
> rs = stmt.executeQuery(sql); 
> RowSetDynaClass resultSet = new RowSetDynaClass(rs, false); 
>  
> rows1=resultSet.getRows(); 
> request.setAttribute("rows2",rows1); 
>  
> String dd = resultSet.getName(); 
>  
> out.println(dd);//printing name 
> out.println(rows1);//printing content of rows 
>  
> rs=null; 
> stmt=null; 
> } catch(Exception e) { 
> e.printStackTrace(); 
> } 
>  
>  
> </jsp:scriptlet> 
>  
> When i run the above code it displays the following 
>  
> org.apache.commons.beanutils.RowSetDynaClass [EMAIL PROTECTED], [EMAIL 
> PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL 
> PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL 
> PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]  
>  
> When i add 
>  
> <display:table name="rows1" /> 
>  
> it display nothing found to display. 
>  
>  
> Please help what i do? 
>  
>  
> BuntyIndia 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to