RE: get real path of a file from action class

2007-06-14 Thread Ambaris Mohanty
Thank you Deepak, It works fine. -Original Message- From: Deepak Kumar [mailto:[EMAIL PROTECTED] Sent: Friday, June 15, 2007 11:22 AM To: Struts Users Mailing List Subject: RE: get real path of a file from action class Hi, You can get it by using the code: //Get the servers upload

RE: get real path of a file from action class

2007-06-14 Thread Deepak Kumar
Hi, You can get it by using the code: //Get the servers upload directory real path name String filePath = getServlet().getServletContext().getRealPath("/") +"upload"; Have a look at http://www.roseindia.net/struts/strutsfileuploadandsave.shtml. Here you will find the code to save the file

RE: get real path of a file from action class

2007-06-14 Thread Gurram, Srinivas
getServlet.getContextPath.getRealPath(File); Regards Srinivas Gurram IT Consultant LogicaCMG - Releasing your potential Divyasree Technopolis 124 - 125 Yemlur Main Road, Off Airport Road Yemlur P.O Bangalore 560 037 India Tel: +91 80 4194 extn 20195 M: +91 99001