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
---
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 '*'
9:16 AM
To: Struts Users Mailing List
Subject: Re: [OT] Displaying XL in browser
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:
r
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
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
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
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
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
8 matches
Mail list logo