struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <Wendy.Sm...@asu.edu>
Subject RE: select tag woes
Date Tue, 16 Sep 2003 16:26:08 GMT
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 populate
two beans.  AFAIK, it's one-to-one with the html form and the ActionForm
instance (the form bean).  After that, you can do what you like in the
Action to populate whatever you need.

So you might have properties such as homeTeamId and awayTeamId in your
form bean.  You probably won't be able to use the magic
BeanUtils.copyProperties() but instead will have to write code to
populate your homeTeam and awayTeam beans from the values in the form
bean.

So I see it going:
Html form -> ActionForm/Action -> populate custom beans -> forward to
view

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message