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

Displaying XL in browser

2005-03-17 Thread Mili Aggarwal, Noida
Hello All, I wish to display an Excel in browser. I am using struts framework. Thus,in Action I have returned an ActionForward to a servlet that displays the Excel. The problem am facing is-. If I try to open more than 1 Excel from the website,it gives the error that cannot open more than

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 an

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: servlet-mapping servlet-nameExcelServlet/servlet-name url-pattern/excel/*.xls/url-pattern /servlet-mapping Then, in your links to the servlet, use a randomly generated string for the '*' part.

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: [OT] Displaying XL in browser

2005-03-17 Thread Wendy Smoak
From: Mili Aggarwal, Noida [EMAIL PROTECTED] Yah,I tried that but IE creates major problem..It ognores that header..Can someone help me soon as its really urgent!! I also use this: res.setHeader(Content-disposition, filename=+browserFilename); and it works just fine in IE. They happen to be

RE: [OT] 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: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 9:16 AM To: Struts Users Mailing List Subject: Re: [OT] Displaying XL in browser From: Mili Aggarwal, Noida [EMAIL

RE: Displaying XL in browser

2005-03-17 Thread Mili Aggarwal, Noida
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: servlet-mapping servlet-nameExcelServlet/servlet-name url-pattern/excel/*.xls/url-pattern /servlet-mapping Then, in your links