• 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

Struts action mappings not working correctly

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello. I hope that I am posting in the correct forum. If not, please direct me to the correct one. Also, I will be as concise as possible being a newbie to Struts.

Here is the JavaScript call to open the window


My JSP with ExtJS


Here are the struts action class mappings


The JavaScript has a URL call that is mapped to my execute() method. When the window opens, I have a URL call to the loadDiagnotics() method to retrieve data from the server. However, the call gets mapped to the execute() method. I have the same issue with my 'Refresh' button within the JSP. The button is mapped to the getDiagnostics() method. However, when the button is pressed, my JSP page seems to call the execute() method instead of the loadDiagnostics() method. In both cases, the execute() is called. How can I get the correct method mapped? Any help is appreciated.

 
reply
    Bookmark Topic Watch Topic
  • New Topic