-
1. Re: JBoss 7 Directory Mapping
mrober Oct 7, 2011 11:17 AM (in response to mrober)Hm...
So, after days of digging, I've found solutions for all previous versions of JBoss, but none of them seem to work with AS 7. Has anyone had any success?
-
2. Re: JBoss 7 Directory Mapping
jhadipak Nov 22, 2011 6:19 AM (in response to mrober)Hi,
I am stuck with a similar problem. I'm sure the mapping can be done...but am not sure where and how.
Have you been able to find a solution?
Dipak Jha
-
3. Re: JBoss 7 Directory Mapping
mrober Dec 5, 2011 12:25 PM (in response to mrober)Dipak,
I found this: http://balusc.blogspot.com/2009/02/fileservlet-supporting-resume-and.html
Though not exactly what I was hoping for, it does get the job done. Just use it to suit your needs and modify your web.xml file accordingly. You'll need something like this:
<servlet>
<display-name>FileServlet</display-name>
<servlet-name>FileServlet</servlet-name>
<servlet-class>com.PACKAGENAME.FileServlet</servlet-class>
<init-param>
<param-name>basePath</param-name>
<param-value>C:/images/</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>FileServlet</servlet-name>
<url-pattern>/images/*</url-pattern>
</servlet-mapping>
Hope that helps you or anyone else who stumbles across this thread with the same problem...
-
4. Re: JBoss 7 Directory Mapping
jhadipak Oct 29, 2012 7:27 AM (in response to mrober)Thanks a ton. That solves my problem. I've coded on similar lines and the thing seems to be working like a charm