Questions tagged [resource-loading]

44 questions
0
votes
3 answers

Do XSD imports load automatically on resource loading?

I am using below snippets to make a Schema object inside static block: URL url = getClass().getClassLoader().getResource("test.xsd"); and test.xsd is importing three other XSD file, My question is will the imports be available when reference to…
curious
  • 915
  • 4
  • 14
  • 27
0
votes
1 answer

ERROR [org.apache.velocity] ResourceManager : unable to find resource 'layout.vm' in any resource loader

MyController.java: @Controller public class ForemanController { @RequestMapping({"/index", "/"}) public ModelAndView home(Model model){ Map map = new HashMap(); // .. fill map return…
user1561108
  • 2,666
  • 9
  • 44
  • 69
0
votes
0 answers

Cross domain (on same server) fails to load resource (Safari)

I have a problem which only occours on Safari. My server has alot of subdomains that points to the same place on my server (/var/www/myproject) my main domain is: www.myproject.com a subdomain could be app.seconddomain.com both of these domains…
Marc Rasmussen
  • 19,771
  • 79
  • 203
  • 364
0
votes
0 answers

getFile() in the ResourceLoader class of spring is removing encoded text in the file name

When I use ResourceLoader class of spring to load file which can have encoded value in the file name (like %27 for ' or %20 for space) and call getFile() method on it, it is converting the encoded value into normal value (in this case %27 to ' or…
user1614862
  • 3,701
  • 7
  • 29
  • 46
0
votes
1 answer

Why does the loading of a POSModel file not work from inside the WEB-INF folder?

I'm using Spring MVC for my web project. I placed the model files inside the WEB-INF directory String taggerModelPath = "/WEB-INF/lib/en-pos-maxent.bin"; String chunkerModelPath = "/WEB-INF/lib/en-chunker.bin"; POSModel model = new…
Yangrui
  • 1,217
  • 2
  • 17
  • 41
0
votes
1 answer

spring framework: load all resources from classpath

I have a directory in my classpath in my spring application. How do I load all files in that directory using ResouceLoader. // bean for test context public class DatabaseLoader { @Autowired protected ResourceLoader myLoader; private…
hrishikeshp19
  • 8,838
  • 26
  • 78
  • 141
0
votes
2 answers

Texture load using string to int replace issue

The issue according to my debug log is that my ints counts with no problem however the int to string conversion continues to apply to the original value not the updated counter on runtime. (there are some unused private's here for testing) & the…
0
votes
1 answer

Jar file not using custom font

Inside NetBeans my custom font loads properly from this set of code but fails to load when I run my program from the executable jar file code public static void main(String[] args) { Arcanus arc = new Arcanus(); try { Font…
Mark9135
  • 101
  • 11
0
votes
1 answer

PHP: Are there Server Side Resource Loaders? (like Mediawiki)

Are there any Resource Loaders avaiable that works server-side? Is that called Ressource Loader? I like the Ressource Loader of Mediawiki very much. Is there a project to use their Ressource Loader standalone? For me, a Ressource Loader is a script,…
0
votes
1 answer

Packing a .jar file with external files

I've recently finished a project I'm working on, and part of it involves using ImageIcons to fill JLabels. So my question is about how I would go about making the filepaths more universal. By that I mean rather that having the path to my image…
0
votes
2 answers

Why is CSS cached?

I understand that CSS style sheets are cached in browser. My question is, why? CSS is usually only kilobytes, so what is the benefit of caching something that small when it can prove so bothersome to update? My only guess is that browsers like…
Alexander Lozada
  • 4,019
  • 3
  • 19
  • 41
0
votes
1 answer

Access a resource from a depending project

ProjectA -src/main/java -com.myApp.accessor -resourceAccessor.java -src/test/resources -context.xml -target/test-classes/context.xml ProjectB (dependent on ProjectA) -src/main/java -xyz.java Now…
Edmond
  • 614
  • 2
  • 11
  • 26
-1
votes
2 answers

Load JS script from file system and execute it with selenium

I'm truing to execute a yui js script with js.executeScript Selenium's method. The script is being executed by selenium webdriver in order simulate a "click" on hybrid mobile app (the button is webview) String IncludeYUI = "script =…
Igal
  • 4,603
  • 14
  • 41
  • 66
-2
votes
1 answer

Eager loading images in Angular

I am writing an angular app that shows image galleries. I want to eager load the images (from URLs) in "next" gallery before the user clicks "next" so that the next gallery appears to load instantaneously. I can think of a way to do this by having…
coffeeeee
  • 129
  • 1
  • 12
1 2
3