Yah marc
I am opening it by redirecting to that url ths is my code which i am using to opnen that file in an action class
String format = request.getParameter(WebConstants.FORMAT);
String reportId = request.getParameter(WebConstants.REPORT_ID);
HttpSession session = request.getSession();
String sFilePath = WebConstants.REPORT_PATH + reportId
+ ReportUtil.getFormatExtn(format);
if (format.equals(WebConstants.EXCEL)) {
response.setContentType("application/vnd.ms-excel");
}
// This is to enable him to go to the listing page of reports
request.setAttribute(CommandConstants.CmdID, CommandConstants.LIST_RPT);
return new ActionForward(sFilePath,false);