There is no "real" path access from a war so
the null return value is unfortunately correct: bin-there-dun-that. URL's will
work but you will have to convert your file to an URL based on the session
context:
toURL(String file)
{
int
port = context.getRequest().getServerPort();
String host = context.getRequest().getServerName(); String root = ((HttpServletRequest)context.getRequest()).getContextPath(); return "http://" + host + ":" + port + root + "/" + file; }
|
Title: Message
- [JBoss-user] Access files in a war archive Stephen Ting
- Re: [JBoss-user] Access files in a war archive Steven Haines
- RE: [JBoss-user] Access files in a war archive Rod Macpherson
- RE: [JBoss-user] Access files in a war archive Stephen Ting
- Re: [JBoss-user] Access files in a war archive Rod Macpherson