• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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...
 
She's out of the country right now, toppling an unauthorized dictatorship. Please leave a message with this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic