Milan- As Dave suggested in an earlier post you can access the full path with getServletContext().getRealPath(FileName) such as this example which will obtain the full path for struts-config.xml String path = getServletContext ( ) .getRealPath ( "struts-config.xml" ) ;
the distinction is between obtaining the FileName and the Full path is between using getUploadFileName and getUpload here are some accessors from org.apache.struts2.showcase.fileupload.FileUploadAction which will hopefully make this distinction clearer // since we are using <s:file name="upload" .../> the file name will be obtained through getter/setter of //<file-tag-name>FileName in other words this will get the FileName public String getUploadFileName() { return fileName; } public void setUploadFileName(String fileName) { this.fileName = fileName; } // since we are using <s:file name="upload" ... /> the File itself will be obtained through getter/setter of //<file-tag-name> this will get the fully qualified path public File getUpload() { return upload; } HTH Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Sat, 27 Dec 2008 05:02:44 -0800 > From: milanmilanov...@yahoo.com > To: user@struts.apache.org > Subject: [S2] File chooser and Firefox 3 > > > Hi, > > when I use File chooser (<s:file/>) in IE to select file on a HD, I get full > path + file name, but when I use Firefox 3.0.5, I just get file name without > preceding path. Does anyone knows what is the problem ? > > -- > Thx, Milan > -- > View this message in context: > http://www.nabble.com/-S2--File-chooser-and-Firefox-3-tp21183939p21183939.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _________________________________________________________________ It’s the same Hotmail®. If by “same” you mean up to 70% faster. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad1_122008