掲示板

Liferay 6.1.1 how to automatically load login.jsp during Create Account

thumbnail
11年前 に Elijah Mangason によって更新されました。

Liferay 6.1.1 how to automatically load login.jsp during Create Account

Junior Member 投稿: 65 参加年月日: 12/05/14 最新の投稿
In the CreateAccount workflow, there is a series of forms that are presented before the user is logged in:

create_account.jsp
login.jsp (with temporary password)
terms_of_use.jsp
update_password.jsp
password_hint.jsp

I need to automatically submit login.jsp without the user ever seeing the form or being required to click a 'Save' button, that is, just moving from create_account.jsp to terms_of_use.jsp but still executing LoginAction.java. I'm trying to do this with javascript within login.jsp like this:

<c:choose>
<c:when test='<%= SessionMessages.contains(request, "autoLoadForm") %>'>
<script type = "text/javascript">
window.onLoad = document.fm.submit();
</script>
</c:when>
<c:otherwise>

but it's not working at all. Any ideas or suggestions?

Thanks in advance.