File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts html event" Watch "struts html event" New topic

struts html event

Chris Pat
Ranch Hand

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

function test(){
window.alert("hello from test");
<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 .
I agree. Here's the link:
subject: struts html event
It's not a secret anymore!