I have a class Bid:
public class Bid implements Serializable {
...
@ManyToOne
@JoinColumn(name="ACCOUNT_ID")
private Account account;
@Column(name="BID_PRICE")
private BigDecimal bidPrice;
...
}
in my action class ListingAction:
public class ListingAction extends ActionSupport {
...
private List<Bid> bids = null;
public
String getBids() throws Exception {
...
}
...
}
I run getBids and in debug mode, I can see all bids information returned include the "Account" information and loginId. but the
JSP show the nothing for loginId (first 4 cell), but bidPrice is showing up correctly.
<s:iterator value="bids">
<tr>
<td>
<s:property value="account"/>
</td>
<td>
<s:property value="account.loginId"/>
</td>
<td>
<s:property value="%{account.loginId}"/>
</td>
<td>
<s:property value="%{#account.loginId}"/>
</td>
<td>
<s:property value="bidPrice"/>
</td>
</tr>
</s:iterator>
Any idea?