How can I import local html/text files into a JSP page?
I posted the following message to the taglibs-user mailing list, but thought I'd do it here as well - since I know I have some smart readers.
I have a requirement to allow reading of "assets" for a website from a local CD. These assets might be images, flash movies, html/text pages, etc. I've got everything working but rendering html/text. When I do the rendering of text/html online, I use <c:import url="/assets/filename.html"/>, and offline, I do <c:import url="file:///e:/assets/filename.html"/>. I can enter this fine in Mozilla and the page will come up, but JSTL's c:import tag says it can't find the file.
2 questions:
1. Can I use c:import to import a local HTML file onto a page?
2. If not, is there any way to do this?
Any ideas?
Posted by Pratik Patel on October 24, 2003 at 01:31 PM MDT #
Posted by Matt Raible on October 24, 2003 at 01:38 PM MDT #
Posted by Marc Adams on October 24, 2003 at 02:06 PM MDT #
Posted by Marc Adams on October 24, 2003 at 02:10 PM MDT #
Posted by Matt Raible on October 24, 2003 at 02:45 PM MDT #
Posted by Cameron Gray on October 24, 2003 at 04:57 PM MDT #
Posted by Cameron Gray on October 24, 2003 at 05:00 PM MDT #
The workaround I'm going to go with is to continue to import HTML and Text assets from the server, and only use the client's local path for media files. Of course, the app I'm developing only does this when the user states that they want to use a local CD for their files (vs. the online versions). This results in much faster downloading for large assets.
Posted by Matt Raible on October 24, 2003 at 05:54 PM MDT #
Posted by Cameron Gray on October 24, 2003 at 06:10 PM MDT #
Posted by Graham on October 25, 2003 at 06:20 AM MDT #
Posted by Jay Dunning on October 27, 2003 at 04:51 PM MST #