if you just want to display the images for up and down arrows, find some nice images you want to use, then on the button tag, add style="background: url(upimage.gif)" where upimage.gif is actually the name of the image for the up arrow. Do the same for the down button. Mkae sute the button has a value of "" or no value declaration at all.
is it possible that both up and down are on the same button?
right now I am doing the table could be sort by item name or price, those two button would be submit hidden field value to servlet, so at the beginning, the button would be "item" and "price", if I click item then servlet will sent back the table sort by item's name asc, so it would be up arrow on the side of item button, it is possible to be done without grid? thx
sure, you can just use 1 button as long as you can detect what way the servlet returned the recordset.
create avraible called servReturn and when the servlet returns the sort 'asc', set the variable to 'asc' and likewise for the 'dec'.
then at the end of your servlet processing script, just add something like: