Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

My struts app went crazy on Internet Explorer

 
Michael Gavryuchkov
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
sreenath reddy
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 415
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HomeAction.java:



controller:


[ October 08, 2004: Message edited by: Michael Gavryuchkov ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic