U can use document.menuForm.name = "the value" 

-----Original Message-----
From: Srilatha Salla [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 10, 2004 1:02 AM
To: Struts Users Mailing List
Subject: RE: form submision using javascript using html:link tag

Hi Girish,
 
Can you please let me know how to set the value for form fields in the
javascript method.
For example if I have "name" as a form property, how to set its value in
the javascript method.
 
Thanks,
Latha.

"Girish Kumar K. P." <[EMAIL PROTECTED]> wrote:

I guess U may call a javascript like onclick="javascript:fnSubmit()" and
in that function u can set the values for the form fields and then on
last line of the function, call 'document.menuForm.submit()'


-----Original Message-----
From: Srilatha Salla [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 09, 2004 2:32 AM
To: [EMAIL PROTECTED]
Subject: form submision using javascript using html:link tag

Hi,

In my application there is a jsp page 

for example menu.jsp which has

there is a link Menu Hours
in the menu.jsp which goes to the hours.jsp

I want to submit the form when i click the link, so that I can access
the values entered in the menu.jsp. in HoursMenuAction.

I tried onclick="document.menuForm.submit()">
but i couldnot access the form properties. I get null values. So, how
can i submit the form and access its properties.

Thanks,
Latha



__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to