Posted on 2010-10-20 12:44 
zolly 阅读(602) 
评论(0)  编辑  收藏  
			 
			
		 
		从PRPC用Clipboard得到的Static Content文件的路径类似于这种形式:
 file://web:/StaticContent/global/ServiceExport/文件.xls
file://web:/StaticContent/global/ServiceExport/文件.xls
有时候需要取得这个文件在服务器上的绝对路径,方法如下:
 String strFileName = "file://web:/StaticContent/global/ServiceExport/文件.xls";
String strFileName = "file://web:/StaticContent/global/ServiceExport/文件.xls";
 String myFileRealPath = com.pega.pegarules.storage.FileStorageManager.getRealPathForFile(strFileName);
String myFileRealPath = com.pega.pegarules.storage.FileStorageManager.getRealPathForFile(strFileName);