Skip to Content
0
Former Member
Nov 14, 2005 at 11:27 AM

send submit when iview is loaded

33 Views

Hi.

I made a iview that is redirected other page using property action value.

So, I made a this code.

I want to send a submit when iview is loaded and move to myBean.getAction() URL.

When I tested it, It show blank screen.

Where is my problem ?

<%@ taglib uri="tagLib" prefix="hbj" %>

<jsp:useBean id="myBean" scope="session" class="com.CallOfficeURLBean" />

<html>

<body onload="go();">

<FORM METHOD="post" name="mainFrm" ACTION="<%= myBean.getAction() %>">

<INPUT TYPE=hidden NAME="%%ModDate" VALUE="0000242500000000">

<INPUT NAME="RedirectTo" VALUE="<%= myBean.getRedirectTo() %>" type=hidden>

<INPUT NAME="username" VALUE="<%= myBean.getUsername() %>" type=hidden>

<INPUT NAME="password" VALUE="<%= myBean.getPassword() %>" type=hidden>

</FORM>

</body>

</html>

<script language="javascript">

function go(){

mainFrm.submit();

}

</script>

Regards, Arnold.