Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 4390 invoked from network); 24 Sep 2002 11:55:29 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 24 Sep 2002 11:55:29 -0000 Received: (qmail 27193 invoked by uid 97); 24 Sep 2002 11:55:39 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 27122 invoked by uid 97); 24 Sep 2002 11:55:39 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 27042 invoked by uid 98); 24 Sep 2002 11:55:38 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) From: "James Krygowski" To: "Struts Users Mailing List" Subject: RE: DynaActionForm blowing away values... Date: Tue, 24 Sep 2002 07:54:55 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal In-reply-to: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hey all-- never mind, i think that my server log isn't completely sequential/real time... thanks! > -----Original Message----- > From: James Krygowski [mailto:james.krygowski@shaws.com] > Sent: Tuesday, September 24, 2002 7:44 AM > To: Struts Users Mailing List > Subject: DynaActionForm blowing away values... > > > Hey all- > > I'm trying to use DynaActionForm to send data from an action to my jsp. > I've got a setup something like: > > MaintainThemesAction ---> MaintainThemes.jsp > > I populate a the DynaActionForm associated with the action in the > MaintainThemesAction but when I try to access the values it > contains from my > JSP I only get errors. I've setup my form-bean and action > mapping like the > following xml snippets (yes, they are in the right locations in my > struts-config.xml file ;)) > > > type="org.apache.struts.action.DynaActionForm"> > > > > > > type="com.shaws.aps.action.AdSetupMaintenanceAction" > name="maintainThemesForm" > scope="request" > validate="false"> > > > > > Here's the errors i get. The first few messages are system.out.println's > from my action class. I kinda find this output confusing given that it > appears to run the action then map the action. It also appears > to blow away > my DynaActionForm right before giving it to the JSP. Can anyone suggest > what is going wrong here? > > got 170 themes from database. > dynaform name is maintainThemesForm > dynaform is a NOT NULL form > setting values to dynaform... > checking set values.... Got an array of size 170 from dynaactionform. > forwarding to jsp... > 09/24 07:31:15 info [axis] Processing a 'GET' for path > '/adsetup/GetThemes' > 09/24 07:31:15 debug [axis] Looking for ActionForm bean instance in scope > 'requ > est' under attribute key 'maintainThemesForm' > 09/24 07:31:15 debug [axis] Creating new DynaActionForm instance of type > 'org.a > pache.struts.action.DynaActionForm' > 09/24 07:31:15 debug [axis] Storing ActionForm bean instance in scope > 'request' > under attribute key 'maintainThemesForm' > 09/24 07:31:15 debug [axis] Populating bean properties from this request > 09/24 07:31:15 debug [axis] > BeanUtils.populate(DynaActionForm[dynaClass=maintain > ThemesForm,themes=], {}) > 09/24 07:31:15 debug [axis] Looking for Action instance for class > com.shaws.aps > .action.AdSetupMaintenanceAction > 09/24 07:31:15 error Unhandled exception thrown from > /adsetup/MaintainThemes.jsp:62 > [1]javax.servlet.jsp.JspException: Cannot create iterator for this > collection > at > org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java: > 337) > at > jrun__adsetup__MaintainThemes2ejsp1b._jspService(jrun__adsetup__Maint > ainThemes2ejsp1b.java:103) > at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43) > at jrun.jsp.JSPServlet.service(JSPServlet.java:106) > at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) > at > jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) > at > jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.j > ava:414) > at > jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatche > r.java:387) > at > jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java > :172) > at > org.apache.struts.action.RequestProcessor.doForward(RequestProcessor. > java:1014) > at > org.apache.struts.action.RequestProcessor.processForwardConfig(Reques > tProcessor.java:417) > at > org.apache.struts.action.RequestProcessor.processActionForward(Reques > tProcessor.java:390) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja > va:271) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:129 > 2) > at > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) > at > jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) > at > jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java: > 241) > at > jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java: > 527) > at > jrun.servlet.http.WebService.invokeRunnable(WebService.java:172) > at > jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo > l.java:348) > at > jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j > ava:451) > at > jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool. > java:294) > at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) > [0]jrun.jsp.runtime.UncaughtPageException: Unhandled exception thrown from > /adse > tup/MaintainThemes.jsp:62 > at jrun.jsp.runtime.Utils.handleException(Utils.java:57) > at > jrun.jsp.runtime.JRunPageContext.handlePageException(JRunPageContext. > java:381) > > > > -- > To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: