Menu

Using SQL

Help
Luis
2005-08-09
2013-03-08
  • Luis

    Luis - 2005-08-09

    How can i use awTagLib to fill the grid from a sql statement

     
    • chololo

      chololo - 2005-08-10

      I think the simplest way to understand how to do it is to download the following packages:

      Download awtaglib-src.zip
      Download sample.war

      In the source zip look for the sample folder, there you can find the source code for the sample application, specifically check the following classes:

      DataGridSampleAction -> In its loadGrid method you can find how you can prepare some prepopulated lists so the grid will use them to generate itself

      SampleDAO -> It has some methos that populate the sample lists, you might want to take this class as reference and create one that does an SQL query (just using plain JDBC or any O/R framework you like)

      Hope it helps

      Regards

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.