struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vijay r" <rvijays...@gmail.com>
Subject Re: {Maybe OT} Ajax with struts
Date Tue, 11 Apr 2006 08:00:47 GMT
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 <jmikus@gmail.com> wrote:
>
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message