Hi,
I’m sorry if these questions are a bit newbie.  But then 
I am a newbie and
I’m getting a bit desperate since I need to get a demo up and working
this weekend and am, frankly, entirely stuck.

The bit of the project I’m currently working on dynamically builds a
multi-page form based on fields in a database.

We’re using Struts and Dynabeans to pass data from DB to the view tier.

I’m then iterating around the main form Dynabean result set and need to
do a large number of comparisons to values in other Dynabeans or values
in session scope etc.

So my first question is how can I check the value in a Dynabean against
a value in session scope?
Say for example I have the active session ID in a session scoped
variable called sectID and a bean containing the rows from the main query:

property="dynaProperties"/>
                            <logic:iterate id="row" name="rowSet"
property="rows" > 

Then:
                              <logic:equal name="row" property="sect_id"
value="<% request.getAttribute("sectID") %>">

(which doesn’t work, of course). I wondered about using jstl to do this
and thereby avoiud the scriptlet but it was beyond me how I could get it
to work with the Dynabean.

In a similar way I need to go a comparison from one Dynabeaan field to
another.

Say
<bean:define id="cols" name="pickList" property="dynaProperties"/>
                            <logic:iterate id="row" name="rowSet"
property="rows" >

<logic:iterate id="items" name="pickList" property="rows" > 
                                              <logic:equal name="items"
property="quest_id" value=<bean:write name="rows"       property="quest_id" />>


Thanks in advance,

Charles








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to