The reason may be the the short of knowledge in java :( ,so I'm asking this question,
Here in this piece of code I'm getting dynamic value(from a jsp page) :
<form action=""><% Class.forName("com.mysql.jdbc.Driver"); Connection con = DriverManager.getConnection("jdbc:mysql://localhost/apps","root","root"); Statement stmt = con.createStatement(); String sql = "select * from info;"; ResultSet rs = stmt.executeQuery(sql); System.out.println(sql); System.out.println("hi Tirtha"); %><center><h3>Information of User's</h3><table cellpadding="4" cellspacing="2" border="1" bgcolor=""><tr><th>User Name</th><th>Email Id</th></tr><tr><%while(rs.next()){%><td><input type="text" name="name" value="<%= rs.getString(1)%>" readonly="readonly"><td><input type="text" name="email" value="<%= rs.getString(2)%>" readonly="readonly"></tr><%}%></table></center></form>
Now I want to save this data in a csv file(having an export option in it).
Any inputs will be appreciated.