--- On Thu, 8/7/08, nauke wrote: > There must be a more elegant solution than this!
Not really: you're trying to access server-side resources from the client side. If you're not going to run your JavaScript through the JSP processor your options are limited, for obvious reasons. One solution was already given to you: deal with server-side resources in the JSP, use them as arguments to JavaScript functions contained in an external JavaScript file, by using custom tags, scriptlets, etc. to set parameter values. You can also generate JavaScript on the server-side by means other than a JSP (FreeMarker, servlet, etc.), or generate JavaScript during the build process, or generate the JavaScript at application startup, or use something like DWR to access a Java object that loads resources at runtime, or... ad nauseum. The underlying issue won't go away; there's client-side resources, and there's server-side resources. That's one of the many unfortunate natures of web applications, AFAICT. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]