File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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"
}
 
jQuery in Action, 2nd edition
 
subject: Calling Action Class by using javaScript in Struts 2
 
Similar Threads
struts2 field validator type boolean and all possible field types.
How do you handle the auto-population of collection of data from dynamic pages?
Struts 2 EJB injection
which book to refer for struts
struts 2 getting remote client ip address