You can define baseDir property (see faq howto) as getServletContext().getRealPath("/project/img")


Just a reminder that getRealPath( ... ) is allowed to return null if the application is deployed for example in a war file, according to the servlet spec. This advice is hence likely to work, but it is not portable.


This message and its attachments have been found clean from known viruses with three different antivirus programs.

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to