Vote count:
0
On siteA, it has a login page that is enclosed in a frameset: like below:
<frameset rows="39px,*" border="0" frameborder="0" framespacing="0">
<frame src="myAccountTopFrame.jsp" name="top" frameborder="0" scrolling="no" >
<frame src="login2.jsp" name="bottom" frameborder="0" >
</frameset>
On siteB, it has an app that allows user to access siteA without manually perform the login. It basically does a form action post to siteA with userID and password embeded in the form. Everything works fine except that the frame is missing. This is because it is not coming thru the login page. Is there a way to show the frame when perform such post? Below is what the siteB form post looks like:
<html>
<body>
<form name=LOGIN action="http://siteA/autoLogin"" method=POST>
<input type=hidden name="LoginName" value="<%=myacct.getLoginName()%>">
<input type=hidden name="Password" value="<%=myacct.getPassword()%>">
</form>
<script language=javascript>
document.forms[0].submit();
</script>
</body>
</html>
Note: both siteA and siteB uses jsp view technology.
asked 44 secs ago
Aucun commentaire:
Enregistrer un commentaire