You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Da...@ovid.com on 2001/07/26 21:02:02 UTC

Scriptlets see the bean, but bean:write doesn't...

Check this out:
      the following works fine:
      <logic:iterate name="journalList" id="journal"
                         type="com.ovid.csa.ojcu.journal.Journal">
            <logic:present name="journal">

     <%=journal.getIssnNum()%>
           <%=journal.getJournalNameString()%>

         </logic:present>
            <logic:notPresent name="journal">
            It's not working
            </logic:notPresent>
       </logic:iterate>

But, if I use
<bean:define name="journal" property="issnNum" scope="page"
                         type="com.journal.ISSN"/>

instead of:
<%=journal.getIssnNum()%>

I'm told: No getter method for property issnNum of bean journal

What am I doing wrong?

Any help is appreciated.
Thank you,

Dallas Browning