Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exporting to Excel Problem( Missing StyleSheet)

Status
Not open for further replies.

moonoo

Programmer
May 17, 2000
62
US
Hi ,
I have a servlet which outputs to excel or html depending on the User selection . The html format is being displayed correctly . But the while loading the Excel Sheet , it gives error ( Error durring load : And its shows that it could not find the StyleSheet).
I am exporting to excel using the code
if (isExcel) {
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-disposition","inline; filename=" + TEMPLATE_BASE + ".xls");
} else {
response.setContentType("text/html");
}

And inside the html I am realting the stylesheet with<link rel="stylesheet" href="LL_S/html/llcontent.css">

What May be the Probelm ? Any help is appreciated .
Regrads
 
Hi,

Try this, Insted of using html link include the css as jsp:include.

Code:
<style>
  <jsp:inclued page="LL_S/html/llcontent.css"/>
</style>
Cheers
Venu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top