/**
* Servlet implementation class down
*/
@WebServlet("/down")
public class down extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* @see HttpServlet#HttpServlet()
*/
public down() {
super();
// TODO Auto-generated constructor stub
}
I'm guessing that perhaps you mean that part of the requesting URL is being used by IE? It isn't very helpful when you use imprecise phrases like "servlet name". Maybe you could give an example if you don't know the names of things?
grk kumar
Greenhorn
Joined: Jul 18, 2011
Posts: 7
posted
0
hi
the problem is with Internet explorer.
the code works fine chrome and firefox for both 2003 and 2007 format.
when it comes to the internet explorer some thing is missing.
i think i need to set some response header for internet explorer.
Paul Clapham wrote:I'm guessing that perhaps you mean that part of the requesting URL is being used by IE? It isn't very helpful when you use imprecise phrases like "servlet name". Maybe you could give an example if you don't know the names of things?
That WAS a suggestion.
grk kumar
Greenhorn
Joined: Jul 18, 2011
Posts: 7
posted
0
hi
Thanks for your response.
internet explorer using my servlet name as file name.
Well, I would suggest you should spell "attachment" correctly. And I would suggest you specify a filename if you are concerned about the filename the browser is going to use. Which it seems you are, since you are complaining about the browser's choice.
As for "down.xslx", that seems like a strange choice for the name of your servlet. Was that really what you meant?
grk kumar
Greenhorn
Joined: Jul 18, 2011
Posts: 7
posted
0
hi
thanks for your response.
i need to force the browser to open the file as given file name.
here the files are changed based on client request.
there are links in jsp page having all filenames.
when user clicks on link the corresponding file downloaded.