You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Frank W. Zammetti" <fz...@omnytex.com> on 2006/10/03 16:05:19 UTC
Re: using dojo with struts
Change that GET to POST... I'm using Dojo with Struts without any problem,
and I believe using the formNode attribute creates a POST body, but
setting method to GET I'd bet discards it.
Frank
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: fzammetti@hotmail.com
Author of "Practical Ajax Projects With Java Technology"
(2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!
On Tue, October 3, 2006 6:39 am, Venkata Phani Kumar wrote:
> Hi,
> I need some help regarding dojo with struts.
> I have one form which contains some check boxes and 'delete' button.
>
> i have corresponding Action and ActionForm classes to implement delete.
> I am trying to implement Dojo here to avoid total page refresh.
>
> the code in jsp is :
> function onclick_delButton() {
> var bindArgs = {
> url: "/deleteaction.do",
> transport: "XMLHTTPTransport",
> changeURL: "true",
> handler: deleteViews,
> method: "get",
> mimetype: "text/html",
> formNode: document.getElementById("viewUpdtForm")
> };
> dojo.io.bind(bindArgs);
> }
> im am calling above javascript method when user clicks on 'delete' button.
>
> The action class is executing perfectly, but the form(ActionForm) values
> are appearing as null.
> Even i tried with request.getParameter("userviews").
>
> can anybody help how to submit form values with dojo submition.
>
> Venkata Phanikumar. G
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org