How to get full path of an file or image in Struts2?

String filePath = ServletActionContext.getServletContext().getRealPath("/");

Comments

Popular posts from this blog

How to get IP address and MAC address of client in java | #CodeFactory

JasperReports Tutorial | #2 | Add Dynamic Image in JasperReport | Code Factory

At Least One Checkbox Is Checked From All CheckBox Group | #CodeFactory