<div>Hi,</div>
<div> </div>
<div> I am trying to do login-authentication in a servlet rather than doing via a scriplet in Jsp. For this, I created a LoginServlet and passed it pageContext, request and response objects from OpenCms JSP template using form's POST method. In LoginServlet, I am gerttng exception on creating below object:</div>
<div> </div>
<div> CmsJspActionElement cms = new CmsJspActionElement(pageContext,request,response);</div>
<div> </div>
<div><strong>exception:</strong> <strong>org.opencms.main.CmsRuntimeException: "org.opencms.jsp.CmsJspBean" is usable only on a OpenCms controlled JSP page.</strong></div>
<div> </div>
<div>My question is: Is it possible to do login-authentication in OpenCms via self developed LoginServlet? </div>
<div> </div>
<div>Any guidelines are highly appreciated.</div>
<div> </div>
<div>Thanks.</div>
<div> </div>
<div>Bye,</div>
<div>Viki.</div>