I am using struts2 in my project. Have to generate image in my action of JSP and store it in war file path. For this i have to get the Contextpath in Struts2. So how to get the War file path to store image/file in specified folder under WAR file?
Can anyone help me to find the Contextpath in struts2. Thanks in Advance.
Use the following code…