I want to submit a s:form when page loads.
here is my code :

```
<s:form id="login_form" action="" method="post">
<s:textfield label="User name" id="login_form_username"
            name="username" value="abc.xyz" cssClass="txtbox"
            required="true" />
        <s:password label="Password" id="login_form_password" name="password"
            value="pass" cssClass="txtbox" required="true" />
        <s:submit value="Login" />
    </s:form>

```

Actually as shown in above code, I will set uname and pwd dynamically and then want to submit this form directly using javascript.

I tried this :

```
<script type="text/javascript"> 
      document.forms.login_form.submit();
</script>

```

but had no success.

Please help...
Thanks..