*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Similar Threads
struts2 field validator type boolean and all possible field types.
struts 2 getting remote client ip address
Struts 2 EJB injection
How do you handle the auto-population of collection of data from dynamic pages?
which book to refer for struts