struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dakota Jack <dakota.j...@gmail.com>
Subject Re: ActionForm implementing Map
Date Fri, 10 Dec 2004 20:29:50 GMT
Thanks, Vic,

Your assistance is a little dark to me.  It seems as if you are
suggesting solutions other than using a Map implementation of
ActionForm.  Is that right?  If so, then I would rather first see what
I can do to make this possible.  The RequestProcessor should not, I
think, make this impossible.  If I misunderstand you, please let me
know.  I do know that I could just not configure an ActionForm, write
my own population, etc. and have no trouble at all.  I would prefer,
however, to act within the Struts context if possible and to
contribute.

Jack


On Fri, 10 Dec 2004 14:20:58 -0600, Vic <vin@friendvu.com> wrote:
> HTML tag lib for getters. (Else you could do some funky EL)
> Request processor you should look at for setters. Also look at Joda
> beans on sf.net.
> 
> My implement ion made a FormBean into a List (for mutirow CRUD).
> 
> .V
> 
> 
> 
> Dakota Jack wrote:
> 
> >Perhaps I should be clearer on this.  I would like to have an
> >ActionForm implement Map, but when I do this, it chokes as follows.  I
> >would like to change this.  I am not sure whether the place to do this
> >is the request processor in Struts or the implementation in commons
> >beanutils.  I do know that the present code will not populate a form
> >which implements Map.
> >
> >Here is the choke "webmasterOptions" is
> >
> >public ActionForward webmasterOptions(ActionMapping am, ActionForm af,
> >HttpServletRequest hsreq, HttpServletResponse shres)
> >
> >Thanks for any assistance on this.  I am willing, of course, to make
> >or to help make whatever changes are necessary to allow the Struts
> >controller to use ActionForms that implement Map.
> >
> >Jack
> >
> >
> >
> >
> >1.  HTML browser exception report
> >
> >Exception report
> >
> >message
> >
> >description The server encountered an internal error () that prevented
> >it from fulfilling this request.
> >
> >exception
> >
> >javax.servlet.ServletException: BeanUtils.populate
> >  org.apache.struts.util.RequestUtils.populate(RequestUtils.java:497)
> >  org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:798)
> >  org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:205)
> >  org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> >  org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
> >  javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
> >  javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >  com.crackwillow.filter.GZIPFilter.doFilter(GZIPFilter.java:23)
> >
> >root cause
> >
> >java.lang.IllegalArgumentException: Null property value for 'webmasterOptions'
> >  org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:755)
> >  org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:801)
> >  org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:881)
> >  org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
> >  org.apache.struts.util.RequestUtils.populate(RequestUtils.java:495)
> >  org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:798)
> >  org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:205)
> >  org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> >  org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
> >  javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
> >  javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >  com.crackwillow.filter.GZIPFilter.doFilter(GZIPFilter.java:23)
> >
> >note The full stack trace of the root cause is available in the Tomcat logs.
> >
> >
> >
> >2.  catalina2004-12-10.log
> >
> >
> >java.lang.IllegalArgumentException: Null property value for 'webmasterOptions'
> >  at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:755)
> >  at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:801)
> >  at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:881)
> >  at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
> >  at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:495)
> >  at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:798)
> >  at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:205)
> >  at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> >  at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
> >  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
> >  at com.crackwillow.filter.GZIPFilter.doFilter(GZIPFilter.java:23)
> >  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)
> >  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
> >  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
> >  at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
> >  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
> >  at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
> >  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
> >  at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
> >  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
> >  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
> >  at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
> >  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
> >  at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
> >  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
> >  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
> >  at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
> >  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
> >  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
> >  at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
> >  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
> >  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
> >  at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
> >  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
> >  at java.lang.Thread.run(Thread.java:534)
> >
> >
> >
> >
> >On Fri, 10 Dec 2004 11:18:45 -0800, Dakota Jack <dakota.jack@gmail.com> wrote:
> >
> >
> >>Do the newer versions of commons utils allow an ActionForm to
> >>implement Map?  Thanks!
> >>
> >>Jack
> >>
> >>--
> >>
> >>"You can't wake a person who is pretending to be asleep."
> >>
> >>~Native Proverb~
> >>
> >>"Each man is good in His sight. It is not necessary for eagles to be crows."
> >>
> >>~Hunkesni (Sitting Bull), Hunkpapa Sioux~
> >>
> >>
> >>
> >
> >
> >
> >
> 
> -- 
> RiA-SoA w/JDNC <http://www.SandraSF.com> forums
> blog <http://www.sandrasf.com/adminBlog>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
> 
> 


-- 


"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message