Hi there,
I have the following code in my jsp...
td
html:select name=homeTeam property=teamId
html:options collection=teamVOs property=teamId
labelProperty=description/
/html:select
/td
td
html:select
Martin wrote:
The problem is that both the bean homeTeam and awayTeam have the
property teamId which results in the following HTML...
As you can see both the name attributes have the value teamId,
which of course is a problem.
I'm confused by having one html form, but expecting Struts to
Alternatively, nest your beans. That is, have TeamForm contain an instance of
AwayTeam and an instance of HomeTeam:
public class TeamForm extends ActionForm {
private AwayTeam awayteam = new AwayTeam();
private HomeTeam hometeam = new HomeTeam();
...
Then, your select tags look
3 matches
Mail list logo