my dog learned polymorphism*
The moose likes Struts and the fly likes struts html event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts html event" Watch "struts html event" New topic
Author

struts html event

Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156
Hello
I have problems triggering a javascript function from a struts tag.

<script>
function test(){
window.alert("hello from test");
}
</script>
<html:button property="" value="Test Button" onklick="test()"/>

I never see the alert.
Vani Bandargal
Ranch Hand

Joined: Oct 06, 2005
Posts: 82
it seems onclick(onKlick) is mispelled .
 
wood burning stoves
 
subject: struts html event
 
Similar Threads
'oncomplete' problem while running request to a servlet
Unexpected call to method or property access.
how to check which key is pressed
href and onbeforeunload
How to submit multiple records in one trip