Re: Calling a struts action from Javascript

2006-07-13 Thread Akshay Ahooja
I am using Struts 1.2.8, Tomcat 5.5, AJAX DOJO. It will later be enclosed as a portlet using Struts Bridge for deployment on Jetspeed 2 Portal. I have a table that is populated dynamically from a database (MySQL). In this table - each table element includes an In Line Edit widget for real-time e

Re: Calling a struts action from Javascript

2006-07-13 Thread Michael Jouravlev
On 7/13/06, Akshay Ahooja <[EMAIL PROTECTED]> wrote: I tried using 1. While Struts html:form tag will properly parse out the query parameter out of "action" attribute, it is not a recommended way to pass data from a submitted form. You might want to use a hidden field instead (unless you use GE

Re: Calling a struts action from Javascript

2006-07-13 Thread Monkeyden
006 10:55 To: Struts Users Mailing List Subject: Re: Calling a struts action from Javascript Hmm ok that makes sense and the form submits.. The problem is I need to store some values in the Bean before/while I submit the form. Is there anyway to store the value in the bean so when teh form submits i

RE: Calling a struts action from Javascript

2006-07-13 Thread Adam Gordon
y an unfriendly user. -Adam -Original Message- From: Akshay Ahooja [mailto:[EMAIL PROTECTED] Sent: Thursday, 13 July 2006 10:55 To: Struts Users Mailing List Subject: Re: Calling a struts action from Javascript Hmm ok that makes sense and the form submits.. The problem is I need to stor

Re: Calling a struts action from Javascript

2006-07-13 Thread Monkeyden
though unless you care > about > the page refreshing. > > -Adam > > -Original Message- > From: Akshay Ahooja [mailto:[EMAIL PROTECTED] > Sent: Thursday, 13 July 2006 09:43 > To: Struts Users Mailing List > Subject: Re: Calling a struts action from Javascript > &g

Re: Calling a struts action from Javascript

2006-07-13 Thread Frank W. Zammetti
widgets in the form so submitting the form submits ALL the values, >> not >> just the one? I guess it really doesn't matter though unless you care >> about >> the page refreshing. >> >> -Adam >> >> -----Original Message- >> From: Akshay Aho

Re: Calling a struts action from Javascript

2006-07-13 Thread Akshay Ahooja
s you care about the page refreshing. -Adam -Original Message- From: Akshay Ahooja [mailto:[EMAIL PROTECTED] Sent: Thursday, 13 July 2006 09:43 To: Struts Users Mailing List Subject: Re: Calling a struts action from Javascript I am using Dojo AJAX Inline Edit widget - and when the save

RE: Calling a struts action from Javascript

2006-07-13 Thread Adam Gordon
eally doesn't matter though unless you care about the page refreshing. -Adam -Original Message- From: Akshay Ahooja [mailto:[EMAIL PROTECTED] Sent: Thursday, 13 July 2006 09:43 To: Struts Users Mailing List Subject: Re: Calling a struts action from Javascript I am using Dojo AJAX I

Re: Calling a struts action from Javascript

2006-07-13 Thread Monkeyden
To elaborate on Frank's reply, the name of the form comes from the name attribute of the in the struts-config, but this value is just a reference to the configuration. Within the context of the , I might even call it a misnomer. People new to struts might be better served by a "bean", "form" o

Re: Calling a struts action from Javascript

2006-07-13 Thread Akshay Ahooja
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: ... I know for regular form tags () you can use: document.formname.submit ()... How would you do it for ? I have to use this because I am using the S

RE: Calling a struts action from Javascript

2006-07-13 Thread Adam Gordon
t: 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: ... I know for regular form tags () you can use: document.formname.submit ()... How would you do it

Re: Calling a struts action from Javascript

2006-07-13 Thread Bart Busschots
Hi, If you do a 'view source' and have a look at the actual HTML that struts generates you'll see that is generates a form with an ID which is the same name as the form associated with the action in strutsconfig. Hence to submit the form from JS you need to so something like: document.getEle

Re: Calling a struts action from Javascript

2006-07-13 Thread Frank W. Zammetti
On Thu, July 13, 2006 10:58 am, Akshay Ahooja wrote: > Hi, > > Does anyone know how to call a Struts action using Javacript... > > I am using: > > > ... > > > > > I know for regular form tags () you can use: > document.formname.submit > ()... > > How would you do it for ? I have to use this becau

Calling a struts action from Javascript

2006-07-13 Thread Akshay Ahooja
Hi, Does anyone know how to call a Struts action using Javacript... I am using: ... I know for regular form tags () you can use: document.formname.submit ()... How would you do it for ? I have to use this because I am using the Struts Bridge in Jetspeed-2... Thanks, Akshay