You should also return false in the onclick <A> event. If return false, the link wont be executed. <a href="#" onclick="submit(); return false;">
-----Original Message----- From: Jarnot Voytek Contr AU/SC [mailto:[EMAIL PROTECTED] Sent: Viernes, 23 de Abril de 2004 10:06 a.m. To: 'Struts Users Mailing List' Subject: RE: problems with onclick=submit() have you tried href="javascript:void(0)"? this is an html issue - not struts. -- Voytek Jarnot Quantum materiae materietur marmota monax si marmota monax materiam possit materiari? > -----Original Message----- > From: Jaakko Rytinki [mailto:[EMAIL PROTECTED] > Sent: Friday, April 23, 2004 8:01 AM > To: Struts Users Mailing List > Subject: problems with onclick=submit() > > > Anyone else had problems with <a href="#" onclick="submit()"? Im using > tiles and the problem is that when I click a link to submit a form, > the link throws me to /myApp/layouts/myLayout.jsp# if I use <a > href="#, plain <a href="" throws me to /myapp/layouts > > --> Error page 500, because such paths are not visible and/or usable > for normal user > > > > > > --------------------------------------------------------------------- > 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] NOTA DE CONFIDENCIALIDAD Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las personas direccionadas en el mail y puede contener informacion (i)de propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier opinion en el contenido, es exclusiva de su autor y no representa necesariamente la opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo inmediatamente junto con todas las copias del mismo, notificando al remitente. No debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus partes si usted no es el destinatario. Muchas gracias. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]