aspose file tools*
The moose likes Struts and the fly likes My struts app went crazy on Internet Explorer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "My struts app went crazy on Internet Explorer" Watch "My struts app went crazy on Internet Explorer" New topic
Author

My struts app went crazy on Internet Explorer

Michael Gavryuchkov
Ranch Hand

Joined: Jan 13, 2002
Posts: 37
Hi All!

I started a new struts/tiles application a week ago and have been using Mozilla Firefox for testing. Yesterday I tried to check if it works on IE and my home.do triggered IE to start download and eventually I got the popup message Internet Explored cannot download home.do from localhost. Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.

Another funny thing happened when I tried to open the same page on Netscape: it opened it in MS Excel.

I have the MIME content set like this:
<META content="text/html; charset=utf-8" http-equiv=Content-Type>

What could be the problem? Please help!!!


[ October 08, 2004: Message edited by: Michael Gavryuchkov ]

SCJP1.4, SCWCD, OCP<br />AppFuse, <a href="http://www.internetpolyglot.com" target="_blank" rel="nofollow">http://www.internetpolyglot.com</a>
sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
Hi

can u clearly tell us whats happening ?? means ur not able to access any servlet in IE r is it that while u want to download some file thorugh ur app,its happening that u r able to download in netscape but the same is not happening in IE
Michael Gavryuchkov
Ranch Hand

Joined: Jan 13, 2002
Posts: 37
What I am trying to do is to simply access my 'home.do' from Internet Explorer. This 'home.do' contains home.jsp, HomeAction.java, HomeForm.java. It is configured the following way in struts-config.xml:



And in tiles-definitions.xml:



When I call http://localhost/myapp/jsp/home/home.jsp it works fine, when I call http://localhost/myapp/home.do Internet Explorer instead of showing the page starts downloading against my will (and I have no code to trigger downloading).

Again, Mozilla works as I want it to work.
sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
Hi

can u paste ur action class ?? and by the way are u using <controller element in ur struts-config.xml if so can u pls paste that line also
Michael Gavryuchkov
Ranch Hand

Joined: Jan 13, 2002
Posts: 37
HomeAction.java:



controller:


[ October 08, 2004: Message edited by: Michael Gavryuchkov ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: My struts app went crazy on Internet Explorer