Hi all,

 

I am using display tag in my application for LOV. For that I set values from
database at runtime that is dynamically.

Using org.apache.commons.beanutils.RowSetDynaClass. it is setting data fine
way. 

But not in correct order which is in my query, which is passed at runtime.

 

Here is my code:

 

java.sql.Connection con = cm.getConnection() ; // just open a connection

      java.sql.Statement stmt = con.createStatement();

      java.sql.ResultSet rs = stmt.executeQuery(query);

      org.apache.commons.beanutils.RowSetDynaClass resultSet = new
org.apache.commons.beanutils.RowSetDynaClass(rs, true);

      stmt.close();

      con.close();

      request.setAttribute("results", resultSet);

 

For example, select id, name from table. It should show like id and name.
But now it display like name and id.

Please let me know what to do to get correct order columns in this way or
tell me any other way to set data for display tag from database.

 

Thanks,

 

 

jeeva

 

-- 
Greetings!

 


ICICI Infotech is now 3i Infotech.


The e-mail addresses of the company's employees have been changed to <existing 
name>@3i-infotech.com. You are requested to take note of this new e-mail ID and 
make use of the same in future

 
"This e-mail message may contain confidential, proprietary or legally 
privileged information. It should not be used by anyone who is not the original 
intended recipient. If you have erroneously received this message, please 
delete it immediately and notify the sender. The recipient acknowledges that 3i 
Infotech or its subsidiaries and associated companies, (collectively "3i 
Infotech"), are unable to exercise control or ensure or guarantee the integrity 
of/over the contents of the information contained in e-mail transmissions and 
further acknowledges that any views expressed in this message are those of the 
individual sender and no binding nature of the message shall be implied or 
assumed unless the sender does so expressly with due authority of 3i Infotech. 
Before opening any attachments please check them for viruses and defects."

Reply via email to