Excel Note
 
 
<script>
var flname; // This is a globally declared variable to store the file name.

function showexcel(){
var stoexcel="T"; // This is the Boolean variable to check the click event.
var pgnum=1; // This ensures that the data is first taken from the starting page
var str="${servlet_prefix}/auto/list/<htmllname>/pagingAction?search__id=${search__id}&paging__node=1&page__number="+pgnum+"&order__by__1=${<htmllname.htmllname>__listCtl.orderBy}&stoexcel=T&flname="+flname;
window.location.href=str; // The first pageis loaded before the data transfer takes place.
}
</script>

// The highlighted syntax should be changed according to the values in htmll page and this should be checked for // all functions.