|
I don't quite understand what lz wants to ask? One of my understanding is:
Method in <body onload=a()>: a()
LZ wants to call a() in the Struts tag
First of all, you can think of the above, add the definition of method a() on the jsp page
<script language="JavaScript">
function a(){........}
</script>
Then, call the method a() in the struts tag of the page
Example: <html:button property="aaa" onclick="a()" />
PS: <body onload="a()"> means to call a() when the page is loaded
The above example calls a() when the button is pressed |
|