hello people!

How to get a data from DB using the engineMap (HashMap)
look:
(in jsp file)

------------------------8<------------------------
<%@ page import="org.jahia.engines.mysettings.MySettingsEngine"%>

<%!
public String getUserProp(Map engineMap, String propName) {
        String propValue = (String)
engineMap.get(MySettingsEngine.USER_PROPERTY_PREFIX + propName);
        if (propValue == null) {
            return "";
        } else {
            return propValue;
        }
}
%>

<%=getUserProp(engineMap, "id_any_field")%>
------------------------>8------------------------

from mysettings.jsp the value is correct but from home.jsp the value
is null. I want get the values correct in any page. Somebody
saaaaveeee me!!

Reply via email to