Login a user
From OpenCms Wiki
If you want to manage the login yourself, there are some hints here: Custom Login Page.
The simplest case to login a user is this:
CmsJspActionElement element = new CmsJspActionElement(pageContext, request, response); CmsJspLoginBean login = new CmsJspLoginBean(pageContext, request, response);
login.login(id, password); if (login.isLoginSuccess()) //do stuff...