Dear Friends,
I want to write in property file. i
test the path and realPath and both of them are true but it doesn't work.
here is my code:
props.put(roomName, roomDescr);
String path = "/WEB-INF/"+ getServletContext().getInitParameter("chatpropertyfile");String realPath = getServletContext().getRealPath(path);
OutputStream fos = new FileOutputStream(realPath);
props.store(fos, "List of Rooms");
fos.close();