• 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

First Struts Application works well in (browser!=Chrome) !!!

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

i'm at the beginning about studying the Struts 2 framework.
I'm following some examples and I deployed my first Struts2 application.
I noticed a strange problem: if I type in my browser the URL http://localhost:8080/struts2tutorial/, application works well only with Firefox and IE. If I use Chrome I have the following message:


Struts Problem Report

Struts has detected an unhandled exception:

Messages:
There is no Action mapped for action name HelloWorld.



The application shoud display an index.html page which contains a link to HelloWorld.action
In Firefox and IE this page appears and I can click on the link in order to execute the action, but with Chrome I have the previous error.
Can anyone explain me this different behaviour?
Thanks in advance

SM

 
Salvo Montalbano
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Damn! I found the solution after my post (and after a lot of hours!)
http://www.roseindia.net/tutorialhelp/comment/30472
The problem is about the index.html file inside the struts2tutorial example!
After editing the file, browser's cache must be cleaned (this caused the difference about Firefox/IE vs Chrome)
I'm a very newbie...
I hope this post will be useful to another newbie
 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Salvo Montalbano wrote:Damn! I found the solution after my post (and after a lot of hours!)
http://www.roseindia.net/tutorialhelp/comment/30472
The problem is about the index.html file inside the struts2tutorial example!
After editing the file, browser's cache must be cleaned (this caused the difference about Firefox/IE vs Chrome)
I'm a very newbie...
I hope this post will be useful to another newbie



Thanks for sharing the information. If you run the project in Eclipse and look at the console, you will spot the problem quickly.
 
reply
    Bookmark Topic Watch Topic
  • New Topic