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
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
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
3 matches
Mail list logo