This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling Action Class by using javaScript in Struts 2

 
Pankaj Kr. Singh
Ranch Hand
Posts: 32
Hibernate Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic