ArrayList into JSP PLEASE HELP!

J

JumpingOffPlace

I've spent FAR too much time trying to figure this out...PLease help!
The goal of the following code is to retrieve a very simple arraylist
and display it in a drop down menu. The reason I am doing it this way
is because the selections need to be stored in the DB and the code that
comprises them to work. Anyway, this is the code:

This one WORKS!

<tr>
<td align="left">
<label:label key="branchingRuleBean.type" message="Operand"
resource="false" />
</td>
<td align="left">
<html:select property="branchingRuleBean.type">
<c:forEach var="branchingRuleOperand" items="${operandsList}">
<html:eek:ption
value="${branchingRuleOperand.operandComponentPath}">
<c:eek:ut value="${branchingRuleOperand.operand}"/>
</html:eek:ption>
</c:forEach>
</html:select>
</td>
</tr>

This one Doesn't....

<tr>
<td align="left">
<label:label key="branchingRuleBean.relationship"
message="Relationship" resource="false" />
</td>
<td align="left">
<html:select property="branchingRuleBean.relationship">
<c:forEach var="branchingRuleRelationship"
items="${relationshipList}">
<html:eek:ption
value="${branchingRuleRelationship.relationshipPath}">
<c:eek:ut value="${branchingRuleRelationship.relationship}"/>
</html:eek:ption>
</c:forEach>
</html:select>
</td>
</tr>


What the JSP page SHOULD display is a drop down menu with the options
"and" and "or". Just above this one in my code I have another-
identical to this- obviously the "name" is different, but it works just
fine- and I can't figure out why this one doesn.t I've checked
everything I can possibly think of- case sensitivity, exc and am
finding nothing. What am I missing??? PLEASE HELP!
 
E

Evertjan.

JumpingOffPlace wrote on 28 Sep 2006 in comp.lang.javascript:
I've spent FAR too much time trying to figure this out...PLease help!
The goal of the following code is to retrieve a very simple arraylist
and display it in a drop down menu. The reason I am doing it this way
is because the selections need to be stored in the DB and the code
that comprises them to work. Anyway, this is the code:

This one WORKS!

<tr>
<td align="left">
<label:label key="branchingRuleBean.type"
message="Operand" [...]


What the JSP page SHOULD display is a drop down menu with the options
"and" and "or". Just above this one in my code I have another-
identical to this- obviously the "name" is different, but it works
just fine- and I can't figure out why this one doesn.t I've checked
everything I can possibly think of- case sensitivity, exc and am
finding nothing. What am I missing??? PLEASE HELP!

Wrong NG, not about Javascript!

What does JSP mean?
 
E

Evertjan.

web.dev wrote on 29 Sep 2006 in comp.lang.javascript:
:) Java Server Pages

;-} What does Java mean?

[Except of course that marvelous island we drove through
last year and did many times before]
 
R

Randy Webb

Evertjan. said the following on 9/29/2006 4:39 AM:
web.dev wrote on 29 Sep 2006 in comp.lang.javascript:

;-} What does Java mean?

That's what my wife drinks 8 gallons a day of, right?
 
E

Evertjan.

Randy Webb wrote on 29 Sep 2006 in comp.lang.javascript:
Evertjan. said the following on 9/29/2006 4:39 AM:

That's what my wife drinks 8 gallons a day of, right?

I wouldn't know.

What is a gallon ?
 
E

Evertjan.

web.dev wrote on 29 Sep 2006 in comp.lang.javascript:
:) approx. 3.784 Liters

Sure, a bit more, 3.785411784 liters, but are you certain?

Methinks it is more like 4.54609 liters.

36.36872 liters, what a wife, Randy,
is this with or without inline comments?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top