JSP: How cani conditionally invoke the page content type
my project involves, a report page having 'Save as Excel' and 'Save as HTML' and print hyperlinks when print is clicked a print dialog box is opened thro' window.print() method
in the same manner, when i click on 'Save as Excel' or 'HTML' a dialog box should open and ask for Savin in .xls or .html this happens when i include the page content type at the starting of JSP, but as soon as the page loads the dialog box appears, even if given on some condition.
Is there any other way of invoking the dialog box for Excel or HTML when clicked on hyperlink, in the same JSP.
Please reply ASAP.
thanx in advance,
sowmya
my project involves, a report page having 'Save as Excel' and 'Save as HTML' and print hyperlinks when print is clicked a print dialog box is opened thro' window.print() method
in the same manner, when i click on 'Save as Excel' or 'HTML' a dialog box should open and ask for Savin in .xls or .html this happens when i include the page content type at the starting of JSP, but as soon as the page loads the dialog box appears, even if given on some condition.
Is there any other way of invoking the dialog box for Excel or HTML when clicked on hyperlink, in the same JSP.
Please reply ASAP.
thanx in advance,
sowmya