Solved

Insert a onClick event in a Strut's button

Posted on 2004-04-23
4
713 Views
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('../inputDB.do?method=insert);">
     <bean:message key="button.search"/>
</html:submit>

Thanks!
0
Comment
Question by:MissBrucoMela
[X]
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
4 Comments
 
LVL 35

Expert Comment

by:TimYates
ID: 10897977
yes

like that :)
0
 

Author Comment

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

Accepted Solution

by:
TimYates earned 125 total points
ID: 10899552
Sorry:

<html:submit property="metodo" onclick="javascript:jumpToInsert('../inputDB.do?method=insert);">
     <bean:message key="button.search"/>
</html:submit>

onclick NOT onClick
0
 
LVL 35

Expert Comment

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

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