Re: Populating a form before displaying it

2004-05-12 Thread Miguel Arroz
Hi again! Found the problem... sorry! I have to specify scope="request" on both actions! Thanks for your help! Yours Miguel Arroz On 12 de mai de 2004, at 12:55, Riyad Kalla wrote: Miguel, I had this problem alot when I was developing a management system. For example, on my DeleteConf

Re: Populating a form before displaying it

2004-05-12 Thread Miguel Arroz
Hi again! I'm sorry, I can't make this work... I always get an empty form! Can you send me 2 entries from your config file, and a prepare execute() method? Maybe you forgot some important detail, or maybe it's just me doing a stupid mistake, but anyway, it doesn't work! :-( Yours Miguel

Re: Populating a form before displaying it

2004-05-12 Thread Miguel Arroz
Hi! Hope this helped a little more ;) -Riyad Yeah, it did! :-) Still not implemented (I just woke up, here in Portugal!) but looks like a good way to do it... better than the one I was using! Thanks a lot for your help! Yours Miguel Arroz Fi

Re: Populating a form before displaying it

2004-05-11 Thread Riyad Kalla
Just to follow this up, the reson this works is that struts uses the 'name' of the form from your struts-config to store the actual object under in the request or session scope, so as long as you keep your naming synced up you can also duplicate this behavior, like I did below when I populated

Re: Populating a form before displaying it

2004-05-11 Thread Riyad Kalla
Miguel, I had this problem alot when I was developing a management system. For example, on my DeleteConfirmation pages, I wanted to show all the info for the entity I was erasing (for example, a User). So how I set that up was 2 actions in my struts-config: So the idea here is t