struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Jouravlev" <jmi...@gmail.com>
Subject Re: {Maybe OT} Ajax with struts
Date Tue, 11 Apr 2006 07:00:17 GMT
On 4/10/06, vijay r <rvijaysubs@gmail.com> 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 JavaScript function
> which creates a XmlHttpRequest with the url = "RegDetails.do?action=populate"
> where action is a DispatchAction parameter. I am working in Websphere
> Application Developer Studio and its working great in it. But when I deploy
> the application in Websphere AS 5.0, the AJAX stuff does not work.
>
> Pre-population of the jsp form works great (which is also based on
> DispatchAction - I give
> http://localhost:9080/dpims/RegDetails.do?action=populate). Only the AJAX
> stuff does not work. I get the following error
>
> [4/11/06 12:07:14:250 IST] 5fbb0406 DispatchActio E
> org.apache.struts.actions.DispatchAction  Request[/RegDetails] does not
> contain handler parameter named action
>
> I am not able to figure out the problem.

If you use POST for your XHR, you must specify request parameters in 
XHR.send(...) instead of appending them to action address. If you use
GET, well, your URL seems ok, I would pass null in XHR.send(...) but I
am not sure that this is the problem.

Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message