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
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
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
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.
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
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
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
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
8 matches
Mail list logo