Insert a onClick event in a Strut's button

Posted on 2004-04-23
Last Modified: 2010-07-27
Is possible insert a OnClick event javaScript on an button created by Strut's tag?
Something like this:

<html:submit property="metodo" onClick="javascript:jumpToInsert('../;">
     <bean:message key=""/>

Question by:MissBrucoMela
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
LVL 35

Expert Comment

ID: 10897977

like that :)

Author Comment

ID: 10899491
No, It does not works!
I have a message error:
"Attribute : onClick is not a valid attribute name"
LVL 35

Accepted Solution

TimYates earned 125 total points
ID: 10899552

<html:submit property="metodo" onclick="javascript:jumpToInsert('../;">
     <bean:message key=""/>

onclick NOT onClick
LVL 35

Expert Comment

ID: 10900170
*sniff* only a B grade?  What did I do wrong?

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
dynamic reloading of jsp in jetty 2 121
maven webservice example issue 2 156
designing in object programming 12 104
dao vs facade design patterns 2 31
Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.
This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question