[opencms-dev] problem reading password from OpenCmsUser

martin koeck martin.koeck at gmx.at
Fri Apr 25 00:47:01 CEST 2003


Mario,

> <%
>   com.opencms.flex.jsp.CmsJspActionElement cms = new 
> com.opencms.flex.jsp.CmsJspActionElement(pageContext, request, response);
>   com.opencms.file.CmsObject cmsObject = cms.getCmsObject();
>   out.print("Username: " + request.getParameter("user") + "<br>");
>   out.print("Passwort: " + request.getParameter("password") + "<br>");
>   
>   java.util.Vector lVec = cmsObject.getUsers();
>   for(int i=0;i<lVec.size();i++) {
>    com.opencms.file.CmsUser lUser = (com.opencms.file.CmsUser)lVec.get(i);
>    if(lUser.getName().equals(request.getParameter("user"))) {
>     out.print("User gefunden.... <br>");
>     out.print("Passwort: " + lUser.getPassword());
>     if(lUser.getPassword().equals(request.getParameter("password"))) {
>      out.print("Passwot OK ......");
>      break;
>     }
>    }
>   }
>   %>

I wonder if you could post the whole source of the jsp -- I assume there 
is some form input below -- I try the same but for me 
request.getParameter("...") always return null, when I start the JSP 
from within opencms.

thx
--
martin





More information about the opencms-dev mailing list