On 10/1/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote: > What I also need is that, when a child form bean is instantiated by > Struts, I want Struts to check if there is an instance of the parent > form bean in the session and if so, pre populate that data from the > parent to the child form bean.
Assuming Struts 1.x... I can't recall the exact syntax of how the forms are stored in the session but I know it invovles the ActionMapping name in the StrutsConfig, so you could try: (YourForm)session.getAttribute(yourActionMappingName); (remember you could have different session scoped instances of the same type of ActionForm in the session - the key is the action mapping name they are tied to.) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]