0

I tried to create an Util class for controller classes calls. One thing gets me stuck for a bit while: in Util class,

there is a string variavle as

public static final String info = "/WEB-INF/classes/abc.properties";

There is a parser to get it:

String test = IOUtils.toString(config.getServletContext().getResourceAsStream(info));

// I have got the null value from this one but cannot get the why.

My question: I set the path for WEB with '/', but still the servlet still did not get it. Your any hints will be greatly appreciated.

0 Answers0