Hi *,

Is there any possibility of sorting the data elements in the form bean with all indexed properties in it. I need to display this data using logic:iterate tag. does struts provide any functionality similar to this. The data has to be displayed in html table format, by selecting any column for sort, the other properties need to be ordered according to the sorted column....

my form bean:

public class IterateForm extends ActionForm {

private int intIndexed[] ={1,2,3,4,5};

  private String strAry[] =
   { "String 0", "String 1", "String 2", "String 3", "String 4" };

public String getStringIndexed(int index) { return (strAry[index]); }

   public String[] getStringIndexed(){
        return strAry;
   }
   public void setStringIndexed(int index, String value)
   { strAry[index] = value; }

  public int getIntIndexed(int index) {
        return (intIndexed[index]);
   }

            public int[] getIntIndexed() {
                return intIndexed;
            }

            public void setIntIndexed(int index, int value){
                intIndexed[index] = value;
            }
}


Thanks in advance Sch.

_________________________________________________________________
Find an old friend. Revisit your past. http://www.batchmates.com/msn.asp It's never been easier!



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to