Is there any reason the the setProperty * function of JSPs doesn't work in
Orion (.8 or .9) like it does in all other JSP 1.0 or 1.1 implementations
I've tried.  Here's the code that won't work specifically in Orion:

<jsp:useBean id="directoryUserViewList"
class="com.telesoft.telmast.beans.DirectoryUserViewList" scope="session">

        <jsp:setProperty name="directoryUserViewList" property="database"
        value="<%=aahelper.getDB() %>" />
        <jsp:setProperty name="directoryUserViewList"
        property="defaultUserSortField"
        value="<%=DirectoryUserViewList.LASTNAME %>" />
        <jsp:setProperty name="directoryUserViewList"
        property="defaultUserSortDirection" value="2"/>
        <jsp:setProperty name="directoryUserViewList" property="sortingOn"
        value="true"/>

</jsp:useBean>

        <jsp:setProperty name="directoryUserViewList" property="*" />


To get it to work in Orion I have to specifically put ALL possible
properties (a real pain in the ass when I deal with a query bean with 50+
possible properties).  This is what I had to do in this case for this bean
to work:

<jsp:useBean id="directoryUserViewList"
class="com.telesoft.telmast.beans.DirectoryUserViewList" scope="session">

        <jsp:setProperty name="directoryUserViewList" property="database"
        value="<%=aahelper.getDB() %>" />
        <jsp:setProperty name="directoryUserViewList" 
        property="defaultUserSortField" value="<%=DirectoryUserViewList.LASTNAME%>" />
        <jsp:setProperty name="directoryUserViewList"
        property="defaultUserSortDirection" value="2"/>
        <jsp:setProperty name="directoryUserViewList" property="sortingOn"
        value="true"/>

</jsp:useBean>

        <jsp:setProperty name="directoryUserViewList" property="firstName"/>
        <jsp:setProperty name="directoryUserViewList" property="lastName"/>
        <jsp:setProperty name="directoryUserViewList" property="eMail" />
        <jsp:setProperty name="directoryUserViewList" property="extension"/>
        <jsp:setProperty name="directoryUserViewList"
        property="costCenterCode" />
        <jsp:setProperty name="directoryUserViewList"
        property="costCenterDescription" />
        <jsp:setProperty name="directoryUserViewList"
        property="maxUsersShown" />
        <jsp:setProperty name="directoryUserViewList" property="showAll"/>
        <jsp:setProperty name="directoryUserViewList"
        property="userSortField"/>
        <jsp:setProperty name="directoryUserViewList"
        property="userSortDirection"/>

James Dalrymple
Telesoft Corp.



Reply via email to