Friday October 24, 2003
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 in Java at Oct 24 2003, 06:02:01 AM MDT 11 Comments
Search This Site
Recent Entries
- Jack's Mohawk
- LinkedIn Cuts 10% (a.k.a. The Journey is Over)
- Happy Birthday Abbie!
- Moving from Spring's XML to Annotations in AppFuse
- Free Maven Training in New Orleans on Election Day
- AppFuse Light ยป AppFuse, Maven Archetypes and Shared Web Assets
- Great Weekend in Montana
- Colorado Software Summit 2008 Wrapup
- RESTful Web Applications with Subbu Allamaraju
- Core Animation with Bill Dudney
Posted by Pratik Patel on October 24, 2003 at 07:31 AM MDT #
Posted by Matt Raible on October 24, 2003 at 07:38 AM MDT #
Posted by Marc Adams on October 24, 2003 at 08:06 AM MDT #
Posted by Marc Adams on October 24, 2003 at 08:10 AM MDT #
Posted by Matt Raible on October 24, 2003 at 08:45 AM MDT #
Posted by Cameron Gray on October 24, 2003 at 10:57 AM MDT #
Posted by Cameron Gray on October 24, 2003 at 11:00 AM 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 11:54 AM MDT #
Posted by Cameron Gray on October 24, 2003 at 12:10 PM MDT #
Posted by Graham on October 25, 2003 at 12:20 AM MDT #
Posted by Jay Dunning on October 27, 2003 at 09:51 AM MST #