Solved

Insert a onClick event in a Strut's button

Posted on 2004-04-23
4
708 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JSP call a method on a session attribute which is an object 2 61
Javascript onclick event 4 107
Run the project 5 87
library class in java 1 90
Scenario: Your operations manager has discovered an anomaly in your security system. The business will start to suffer within 15 minutes if it is a major IT incident. What should she do? We have 6 recommendations for managing major incidents (https:…
Cloud-based technologies and services will continue to grow in popularity in 2017 thanks to the simple, scalable and cost-effective solutions they deliver. Here are three areas where cloud adoption is poised to really take off.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

895 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now