Meaningless Drivel is fun!
The moose likes JSP and the fly likes Download CSS to client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Download CSS to client" Watch "Download CSS to client" New topic

Download CSS to client

Shannon Sims
Ranch Hand

Joined: Jul 03, 2003
Posts: 197
Hello Everyone,
I'm fairly new to Java and JSP, so therefore if I'm not clear, please forgive me.
I have a jsp page with an excel icon that will allow my users to click on the icon and be able to download the jsp page as an excel spreadsheet. However, my only problem is that when you save the file, it does not save the corresponding stylesheet that is provided within the <LINK> tag. Therefore all of the formatting is lost. Does anyone have any suggestions or ideas? It would be much appreciated.
Thank you!
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63870

Hi Shannon,
Welcome to the ranch.
This isn't really a JSP question so you should ask it in the HTML/Javascript (or ask a bartender to move it there).
Additional information that might be needed to help you out include the download mechanism you are employing to get the page into excel.
Generally, linked resources such as images, script files, style sheets and the like will not download as they are not part of the page. With more information on what you are doing and why, an alternative solution that satisfies your requirements might be found.
[ July 22, 2003: Message edited by: Bear Bibeault ]

[Asking smart questions] [About Bear] [Books by Bear]
Rob Ross

Joined: Jan 07, 2002
Posts: 2205
I'm going to move this to HTML/JavaScript and see if you can get an answer. If not, we can try moving it someplace else

SCJP 1.4
I agree. Here's the link:
subject: Download CSS to client
It's not a secret anymore!