DynaForms with array properties

2004-04-22 Thread Nathan Ewing
As anyone who's probably tried to put an array of objects as part of a DynaForm knows, if you try to submit a form with the array on it, struts in it's infinite wisdom does not create the array correctly, but instead throws an ArrayOutOfBounds exception. I've extended DynaValidatorForm and made it

RE: close the window if no errors

2004-04-22 Thread Nathan Ewing
This is exactly the behavior you will get with my suggestion. I'm using in the done.jsp page. When the action processes and there are no errors, it immediately forwards to that page and the window closes. From the users perspective, the instant they hit submit the window closes, they can't tell

RE: close the window if no errors

2004-04-22 Thread Nathan Ewing
don't want to go to any JSP, I want to close the window if errors are empty. Thank you. >From: "Nathan Ewing" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "Struts Users Mailing List" <[EMAIL PR

RE: close the window if no errors

2004-04-22 Thread Nathan Ewing
Forward( "done" ); screen is hanging > >Do I need to define "done" in struts-config.xml > >Thank you for your help. > > > >From: "Nathan Ewing" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTEC

RE: close the window if no errors

2004-04-22 Thread Nathan Ewing
Just save like you normally would, and when it finishes do a "return (mapping.findForward("done"));", which goes to a page with the following as part of the html code: Nathan -Original Message- From: sudheshna aaa [mailto:[EMAIL PROTECTED] Sent: Thursday, April 22, 2004 10:31 AM To: [

RE: Creating an indexed property of DynaActionForms

2004-04-21 Thread Nathan Ewing
in LazyValidatorForm, then it generates an ArrayList of LazyDynaBeans. Niall - Original Message - From: "Nathan Ewing" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, April 21, 2004 10:51 PM Subject: RE: Crea

RE: Creating an indexed property of DynaActionForms

2004-04-21 Thread Nathan Ewing
Beans. Niall - Original Message - From: "Nathan Ewing" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, April 21, 2004 9:44 PM Subject: RE: Creating an indexed property of DynaActionForms Lemme give an example, Lets s

RE: Creating an indexed property of DynaActionForms

2004-04-21 Thread Nathan Ewing
p Should populate an ArrayList of LazyDynaBeans containing property1 and property2 Niall - Original Message - From: "Nathan Ewing" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, April 21, 2004 8:53 PM Subject:

RE: Creating an indexed property of DynaActionForms

2004-04-21 Thread Nathan Ewing
/ Unfortunately I haven't tried this, but am pretty sure it works. sandeep -Original Message- From: Nathan Ewing [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 5:49 PM To: [EMAIL PROTECTED] Subject: Creating an indexed property of DynaActionForms I'm trying to figure

RE: Creating an indexed property of DynaActionForms

2004-04-21 Thread Nathan Ewing
tive it is. sandeep -Original Message----- From: Nathan Ewing [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 1:48 PM To: Struts Users Mailing List Subject: RE: Creating an indexed property of DynaActionForms I briefly toyed with the idea of trying to fix the flaw myself, but I loo

RE: Creating an indexed property of DynaActionForms

2004-04-21 Thread Nathan Ewing
Subject: RE: Creating an indexed property of DynaActionForms I couldn't think of one. sandeep -Original Message- From: Nathan Ewing [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 11:00 AM To: Struts Users Mailing List Subject: RE: Creating an indexed property of DynaActionForm

RE: Creating an indexed property of DynaActionForms

2004-04-21 Thread Nathan Ewing
ndeep -Original Message- From: Nathan Ewing [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 5:49 PM To: [EMAIL PROTECTED] Subject: Creating an indexed property of DynaActionForms I'm trying to figure out how to define and use a DynaActionForm which has an indexed property that

RE: Action -> nothing

2004-04-21 Thread Nathan Ewing
Just create an action. The first time the action is called have it do: return (mapping.findForward("display")); In the jsp code, when you specify the form tag do: It will then go back to the original form with a parameter added: String action = request.getParameter("action"); If (action != n

Creating an indexed property of DynaActionForms

2004-04-20 Thread Nathan Ewing
I'm trying to figure out how to define and use a DynaActionForm which has an indexed property that is another DynaActionForm. I'm using struts 1.1. Here is something like what I mean: First my sample struts-config.xml --