although not very elegant, have you tried: <body onload="submitmyform()"> View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114654#4114654 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114654