• 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

Dispatch Action class showing different behaviour browser dependent

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

I am working on struts 1.2 application and i am using Dispatch Action class. I have defined some methods in the class extending Dispatch Action and i am passing the name of the method in request parameter named type. Actually the problem is in Chrome and IE these methods are going to called once on each request but on Mozilla some methods are called twice on a single request.

I have got stuck as these behavior is browser dependent so one side i think it must not be the java code issue but what other it may be.
You please guide me what to check for this.

Thank You
 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
some times, b'use browser or other issues... form will submitted twice.

In order to avoid duplicate submission of forms, you have to use, saveToken() and isTokenValid() methods.

You can google above the methods.
 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seems like the problem is in the client side events... normally if you specify two similiar events like onclick and onmouseup for the same element IE will take the onmoseup event only but firefox and chrome will take both... Purely the problem is not with DispatchAction for your problem...
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic