Foren

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

thumbnail
Elijah Mangason, geändert vor 11 Jahren.

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

Junior Member Beiträge: 65 Beitrittsdatum: 14.05.12 Neueste Beiträge
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.