aspose file tools*
The moose likes Struts and the fly likes Calling Action Class by using javaScript in Struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Calling Action Class by using javaScript in Struts 2" Watch "Calling Action Class by using javaScript in Struts 2" New topic
Author

Calling Action Class by using javaScript in Struts 2

Pankaj Kr. Singh
Ranch Hand

Joined: Mar 31, 2011
Posts: 32

Hi Guys,

I want to call Action Class using java script in Struts 2 if someone has done it please post solution.

your help will be appreciated.


Thanks

Pankaj singh





ganapathi pudi
Greenhorn

Joined: Apr 29, 2012
Posts: 10
call action from javascript
function function() {
var var_name = document.forms["form_namel"]["vartextbox_name"].value;
window.location = "actionname.action?variblename=variblevalue";
(or)
window.location="actionname!methodname?variblename=variblevalue"
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling Action Class by using javaScript in Struts 2