RE: select tag woes

2003-09-16 Thread Wendy Smoak
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

RE: select tag woes

2003-09-16 Thread Michael Ruppin
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