Insert a onClick event in a Strut's button

Posted on 2004-04-23
Medium Priority
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"/>

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 375 total points
ID: 10899552

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

onclick NOT onClick
LVL 35

Expert Comment

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

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

762 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