• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

My struts app went crazy on Internet Explorer

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HomeAction.java:



controller:


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