Thanks boske3 for ur reply Can u please help me in running my first example...here is the code Please HELP If any thing wrong please guide its very urgent for my final year project
<%@ page language="java" import="java.sql.*,java.util.*,org.apache.commons.beanutils.*,org.displaytag.*" %> <[EMAIL PROTECTED] contentType="text/html"%> <[EMAIL PROTECTED] pageEncoding="UTF-8"%> <%@ taglib uri="http://displaytag.sf.net" prefix="display" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <% ArrayList rows1= null; try { ResultSet rs; Statement stmt; Class.forName("com.mysql.jdbc.Driver"); out.println("Welcome To PetroFed"); Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/test?user=root&password=passit"); String sql = "SELECT * FROM master"; stmt = conn.createStatement(); rs = stmt.executeQuery(sql); RowSetDynaClass resultSet = new RowSetDynaClass(rs, false); rows1=(ArrayList)resultSet.getRows(); request.setAttribute("rows1",rows1); rs=null; stmt=null; } catch(Exception e) { e.printStackTrace(); } %> <display:table name="rows1" id="rows1" export="true" > <display:column property="email" title="Email" /> <display:column property="name" /> <display:column property="company" /> <display:column property="contact" /> <display:column property="category" /> <display:column property="edate" /> <display:column property="desg" /> <display:column property="others" /> </display:table> </body> </html> -- View this message in context: http://www.nabble.com/-displaytag---Help--RE%3A-Jsp-2.0-tf1889589.html#a5169498 Sent from the DisplayTag - General forum at Nabble.com. Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user