You can use javascript with struts like any other static HTML page... just add your java script body:
<script language="JavaScript" src="file.js"></script> and you can call your insite your HTML STRUTS TAGS like this: <html:button property="" name="" value="" onclick="js_fuction_here" /> replace onclick for onchange , onmouseover .... take a look at the HTML TAG SPECIFICATION in struts documentation... Tiago Henrique C. R. Alves -----Mensagem original----- De: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 8 de dezembro de 2003 16:27 Para: Struts Users Mailing List Assunto: RE: Form with a Form Hi, If at all I can use JavaScript in Struts...pls guide me how can I implement the same Tnx in Advace, -Ramadoss -----Original Message----- From: Ajay Kalidindi [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 1:40 PM To: Struts Users Mailing List Subject: RE: Form with a Form I have a suggestion. You can add a HIDDEN field, write a java script on click of multiple buttons Like "ADD", "DELETE", "EDIT", "RENAME" buttons. What the java script will do is update HIDDEN variable and submit. I have not come across form within a form in HTML. Regards Ajay Kalidindi -----Original Message----- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 10:17 AM To: [EMAIL PROTECTED] Subject: Form with a Form Hi, Can we define a form within a form...if so can you guide me . Actually in my jsp I wanted to perform two different action with respect to button pressed.....so If I define global form I can only submit the global action defined in that form but I wanted to submit different action with respect to different button clicked so in that case I'm going for two different form....plz set me if I'm wrong.. possible pls provide me how can I achieve the same. Tnx in advance, Ramadoss --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]