Hi,
I need a component to be able to read configuration data from WEB-INF. Traditionally, I would have used startup code in a servlet and used getServletContext() to get at the files under WEB-INF but I don't have access to that in Seam.
How does one read data from a WEB-INF folder.
Hi,
this should do the trick:
ServletContext ctx = ServletLifecycle.getServletContext();
File f = new File(ctx.getRealPath("WEB-INF/your.file"));
maybe there is better way if there is I would also like to know...