This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Download CSS to client" Watch "Download CSS to client" New topic
Author

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
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

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.
hth,
bear
[ July 22, 2003: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rob Ross
Bartender

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


Rob
SCJP 1.4
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Download CSS to client
 
Similar Threads
jsp to convert to excel format
Enable icon once download request is processed.
Download CSS to client
excel file embedded in html page not working
How do i save a file that has been generated using JSP in excel format .