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
2 matches
Mail list logo