This query is related to struts 1.3.
Let's say I have one action called 'getName.do' which is mapped to 'GetName.java' action class. In the dmexecute method of this action class, I am setting one result say String result = Hello;.
My query is how I can call this struts action (getName.do?parameter=value) from one of my javascript files.
Essentially, I want the value of result, which is Hello, to be present in my javascript file through this getName.do?parameter=value call. How I can make this call in my javascript file.
Any help will be highly appreciated.
You can use jQuery ajax for this purpose.
Importing jquery file:
Calling action through jquery ajax:
Hope this will help.