I would like to use attributes similar to <body onload = a ()> in the basic JSP pages of the struts framework. How do I configure and use them? Thank you.
onload=a();a() is the initialization function before loading the page that you write in JAVASCRIPT etc. in the JSP page.
You can add <script language="JavaScript"> a(){........}</script> to the JSP file.
..........
The use of javaScript has nothing to do with the Struts framework.
eg:
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function c()
{
//content
}
</SCRIPT>
</HEAD>
<body onload=a()>
</body>