It's not a secret anymore!
The moose likes Struts and the fly likes need solution for ajax call using in struts 1.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "need solution for ajax call using in struts 1.2" Watch "need solution for ajax call using in struts 1.2" New topic

need solution for ajax call using in struts 1.2

jack hiren

Joined: Sep 12, 2012
Posts: 6
hi all,

I have 2 radio button in end jsp & I want the value of checked radio button but the problem is we are using the ajax call in home jsp that is going to struts action class & some manupulation is done in that action, action class forwards to end jsp in that jsp we have created 2 radio button. below is the code.

i am using struts 1.2 version

type: "POST",
url: "",
data: { gender: gender , age: age , policyTerm: termSliderVal , sumassured: saSliderVal , smoker: lsmoker, saAmountFactor: radiocoverHidValue , abc: abc},
success : function(response, textStatus, jqXHR)

the above ajax code calls to action class, that forwarded to the following end jsp
<input type="radio" name ="upsell" id="sa" styleClass="upsellClass" value="original amount"> </div>

<div><input type="radio" name ="upsell" class="upsellClass" value="upsale amount">

we added response to home jsp using inner html,these radio buttons can check dynamically, i need these radio button checked value in the home jsp.

need replay urgent thanks in advance,
Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

1. Why would want an Inner HTML instead you can change the div style visibility
2. Have tried what are all the forms and their element forms[0], forms[1]... if you have a single form you should be getting it else try other forms or I still would go with the first option

Have Fun with Java
little,little.. little by little makes a lot..
I agree. Here's the link:
subject: need solution for ajax call using in struts 1.2
It's not a secret anymore!