Sorry if this one doesn't below in the
struts forum but i am using struts tag libs for display
basically.. how to i dynamic change colspan attibutes and the width of certain columns based on the amount of columns that will display in a row passed on a sql select from the table.. ie.. if 2 columns are displayed i might want the width of column 1 to be 120 and column 2 to be 480.. but if 5 columns are to display i might want width of column1 to be 100 and col2 to be 120 col 3 to be 130..etc.etc..
also i need to changed the colspan on the table header appropriately to span the correct number of columns.. how can i keep my presentation layer clean to avoid a bunch of if then else scriptlets?