Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

My struts app went crazy on Internet Explorer

 
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 ]
 
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 ]
 
Can you really tell me that we aren't dealing with suspicious baked goods? And then there is this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!