I want to load a file from WEB-INF/templates/… in a background thread. Can I get somehow the path to the WEB-INF directory?
Thanks,
Andreas
I want to load a file from WEB-INF/templates/… in a background thread. Can I get somehow the path to the WEB-INF directory?
Thanks,
Andreas
You could try and use
((HttpServletRequest) VaadinRequest.getCurrent ()).getPathTranslated ()
to get to the real path of webapp and from there construct path to your resource into webapp/WEB-INF