Re: Displaying XL in browser

2005-03-18 Thread Emmanouil Batsis
Mili Aggarwal, Noida wrote: Hello, Its not taking the name of the servlet in Url..Its taking the name of form action in URL and that's where the problem is. You need to redirect instead of forward (setRedirect(true) or something). Cheers, Manos ---

RE: Displaying XL in browser

2005-03-17 Thread Mili Aggarwal, Noida
PM To: Struts Users Mailing List Subject: Re: Displaying XL in browser Just off the top of my head here, I'd try having a servlet mapping that looks like this: ExcelServlet /excel/*.xls Then, in your links to the servlet, use a randomly generated string for the '*'

RE: Displaying XL in browser

2005-03-17 Thread Mili Aggarwal, Noida
notify the sender immediately by return e-mail and delete it from your computer. -Original Message- From: Tom Ziemer [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 7:02 PM To: Struts Users Mailing List Subject: Re: Displaying XL in browser Hi, you could try to use

Re: Displaying XL in browser

2005-03-17 Thread Jeff Beal
Just off the top of my head here, I'd try having a servlet mapping that looks like this: ExcelServlet /excel/*.xls Then, in your links to the servlet, use a randomly generated string for the '*' part. Your browser will see this as a different name each time. Since you're using a S

Re: Displaying XL in browser

2005-03-17 Thread Tom Ziemer
Hi, you could try to use response.addHeader("Content-Disposition", "inline; filename=filename"); and set the "filename" dynamically. Ta Ta For Now, Tom Mili Aggarwal, Noida wrote: Hello All, I wish to display an Excel in browser. I am using struts framework. Thus,in Action I have returned a