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

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

FTP Connection In Installed Alfresco | Code Factory