Thứ Sáu, 20 tháng 4, 2012

How to get real path in JSF

ServletContext ctx = (ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext();


String deploymentDirectoryPath = ctx.getRealPath("/");

Không có nhận xét nào:

Đăng nhận xét