struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "V. Cekvenich" <>
Subject Re: Nested Indexed Property
Date Sat, 21 Sep 2002 20:19:20 GMT
Not sure what your question is:
If you want to do multi row displays or multi row displays, I have beans 
that implement iterator or collection (getRow).
If your want to update multiple beans, you can have such beans within a 

If you have issues with setters, you can unit test them outside of 
Struts or webapps.

If you have issues with parms or attributes, you can debug them my 
iterating all the attributes/parms for request/session and see what you 

Try going step by step. Test the setter. Test the parms. Test the 
iteration. (To me, the main attraction of MVC is that you can unit test 
each component before using it).

Howard Miller wrote:
> Hi,
> Sorry for repeating myself, but I think having read a lot more I can ask the question

> with a bit more "intelligence".
> To set the scene may I quote from the documentation:
> "You may also place a bean instance on your form, and use nested property 
> references. For example, you might have a "customer" bean on your Action 
> Form, and then refer to the property "" in your JSP view. This 
> would correspond to the methods customer.getName() and 
> customer.setName(string Name) on your customer bean"
> fine... BUT what if name is a property of an object in the LIST customer. So 
> (working backwards) I want to create the reference:
> customer.get( i ).setName(string Name) (oversimplified I know).
> BUT it gets worse.... the index, i, is actually a property set on the previous JSP 
> page... so its more like
> customer.get( reqest.getParameter( "index" ) ).setName(string Name )
> ...and of course the form action needs to properly read the current values into 
> the form text fields and then set them back into the correct place. I have no 
> clue how to do this! Any offers?
> HM

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message