Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Elijah "Ellie" Mangason
Liferay 6.1.1 how to automatically load login.jsp during Create Account
September 12, 2012 6:03 PM
Answer

Elijah "Ellie" Mangason

Rank: Junior Member

Posts: 67

Join Date: May 14, 2012

Recent Posts

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.