Monday, June 16, 2008

Alert struts error messages

To alert struts error messages in JSP's

<script language="javascript">
var errors = '<html:errors/>';
if(errors != '')
alert(errors);
</script>

No comments: