A good workman is known by his tools.
My question is how do I pass this key variable to my ActionForm?
I don't have a button named "Key" with value "yes" .
What I want is when the user hits the Enter on the keyBoard,it should have the same effect as if th user has pressed the "Yes" button on the JSp.
In order to take care of the "Enter" on the keyboard,using javaScript I am capturing the keycode for the "Enter" and storing it on variable "Key."
(see my previos posts)
A good workman is known by his tools.
Originally posted by trupti nigam:
In struts the form doen't have name.
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
Originally posted by trupti nigam:
hello Marc and ray,
In struts the form doen't have name.
So in the below line in place of myForm what do I need to put?
I have a line below in my JSP.
<html:form action="/Confirm" method="post" >
If I put only confirm in place of MyForm nothing happens.
document.MyForm.buttonYes.click();//
Thanks,
Trupti