struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Krygowski" <james.krygow...@shaws.com>
Subject RE: DynaActionForm blowing away values...
Date Tue, 24 Sep 2002 11:54:55 GMT
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 ;))
>
>
>         <form-bean      name="maintainThemesForm"
>                         type="org.apache.struts.action.DynaActionForm">
>           <form-property name="themes" type="java.lang.Object[]"/>
>         </form-bean>
>
>
>
>         <action    path="/adsetup/GetThemes"
>            type="com.shaws.aps.action.AdSetupMaintenanceAction"
>            name="maintainThemesForm"
>            scope="request"
>            validate="false">
>           <forward name="success" path="/adsetup/MaintainThemes.jsp"/>
>         </action>
>
>
> 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=<NULL>], {})
> 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)
> <snip/>
>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message