This content has been marked as final.
Show 2 replies
-
1. Re: Reading/Writing files with JSP
milowe Apr 29, 2005 8:35 AM (in response to wimana)File f = new File(this.getClass().getResource("/yourfileinarchive").getFile())
-
2. Re: Reading/Writing files with JSP
wimana Apr 29, 2005 9:03 AM (in response to wimana)thank you for posting. i've already found an other solution. the extra dificuly was that i didn't read the files in the JSP itself, but in plain JAVA classes. So i solved the problem by saving the path with :
Predefinition.getInstance().setUrl(this.getClass().getClassLoader().getResource("files"));
in a Singleton (Predefinition). In this way all the classes could reach the online files!
A new happy JBoss user!
WIM