struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akshay Ahooja" <akshayaho...@gmail.com>
Subject Re: Calling a struts action from Javascript
Date Thu, 13 Jul 2006 15:43:01 GMT
I am using Dojo AJAX Inline Edit widget - and when the save button is
pressed it automatically calls an onSave JS handler ... I believe you have
to do the submit in JS in this case?

-Akshay

On 7/13/06, Adam Gordon <Adam.Gordon@readytalk.com> wrote:
>
> That really depends on what you are actually trying to do.  We use J/S to
> make XML HTTP requests (using AJAX) to make requests without having to
> reload the page.  We do this to display "dialogs" in the same browser
> window, e.g., to show report details.
>
> If you want other examples, Google's Gmail uses AJAX all over the place.
>
> If you just want to submit the form, you don't even need J/S, you can use
> <html:submit> which will render a button to submit the form (it just needs
> to be inside the <html:form><html:form/> elements.
>
> -Adam
>
> -----Original Message-----
> From: Akshay Ahooja [mailto:akshayahooja@gmail.com]
> Sent: Thursday, 13 July 2006 08:59
> To: Struts Users Mailing List
> Subject: Calling a struts action from Javascript
>
> Hi,
>
> Does anyone know how to call a Struts action using Javacript...
>
> I am using:
> <html:form action+"...">
>
> ...
>
> </html:form>
>
>
> I know for regular form tags (<form>) you can use:
> document.formname.submit
> ()...
>
> How would you do it for <html:form>? I have to use this because I am using
> the Struts Bridge in Jetspeed-2...
>
>
> Thanks,
>
> Akshay
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message