Re: {Maybe OT} Ajax with struts

2006-04-11 Thread Michael Jouravlev
For POST method add this in your code: XHR.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); On 4/11/06, vijay r <[EMAIL PROTECTED]> wrote: > Yes, that was the problem. > > I changed the POST parameter to GET in http.open(); and its working. Keeping > it POST and passing the

Re: {Maybe OT} Ajax with struts

2006-04-11 Thread [EMAIL PROTECTED]
hen they will show up on the server as parameters instead of attributes. Bryan LaPlante -- Original Message --- From: "vijay r" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tue, 11 Apr 2006 13:30:47 +0530 Subject: Re: {Maybe OT} Ajax with

Re: {Maybe OT} Ajax with struts

2006-04-11 Thread vijay r
Yes, that was the problem. I changed the POST parameter to GET in http.open(); and its working. Keeping it POST and passing the parameters in send() does not work. Anyways, making it GET works and thats what I need. But what could be the problem? regards, vijay. On 4/11/06, Michael Jouravlev <

Re: {Maybe OT} Ajax with struts

2006-04-11 Thread Michael Jouravlev
On 4/10/06, vijay r <[EMAIL PROTECTED]> wrote: > Hello, > > I used AJAX to fill details for a corrosponding selected value listed in a > combo box. So for a particular registration number, the details of the > vehicle are filled. > > On the onchange() event of the combo box, I am calling a JavaScri