You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Steve Raeburn <st...@ninsky.com> on 2003/07/01 01:01:11 UTC

RE: Struts 1.1 bean:write problem

Could you post the code that's causing the problem? The section of the
action that places the object you're trying to display and the jsp code that
displays it would be helpful.

Also, try getting the struts-blank application to work. Then at least we'll
know that Struts release 1.1 (it's good to be able to say that ;-) ) works
on your setup. If it does, then maybe you could try  add just the bean setup
and display code that you think is causing the problem.

Steve

> -----Original Message-----
> From: David Jiao [mailto:djiao@landranger.com]
> Sent: June 30, 2003 1:52 PM
> To: Struts Users Mailing List
> Subject: RE: Struts 1.1 bean:write problem
>
>
> My initial guess was not because of the bean:write. But then I found out
> the error only happens when I use the bean:write for a long type.
>
> I checked the log file and the only message there are the same as listed
> on the page.
>
> I am sure that it's the bean:write problem or has something to do with
> that because after I remove that line of code, it works.
>
> BTW, I am using jdk1.3.1 and tomcat 4.1.18.
>
> Thanks
>
> David
>
>
>
> On Mon, 2003-06-30 at 15:32, Steve Raeburn wrote:
> > Works for me with both Long and long properties.
> >
> > The exception message doesn't seem to be anything to do with this. Often
> > it's a sympton that the ActionServlet has not initialised properly.
> > Check your logs for other error messages that may have prevented
> > ActionServlet from loading.
> >
> > Steve
> >
> > > -----Original Message-----
> > > From: David Jiao [mailto:djiao@landranger.com]
> > > Sent: June 30, 2003 1:06 PM
> > > To: struts-user@jakarta.apache.org
> > > Subject: Struts 1.1 bean:write problem
> > >
> > >
> > > Hi,
> > >
> > > I developed my application using struts 1.0.2. Today I updated it to
> > > struts 1.1 and found the following error messages (listed the end of
> > > this mail).
> > >
> > > I found the problem is in here.
> > > <bean:write name="beanname" property="propertyname"/>
> > > When property is a long (maybe numeric) value, it throws the
> exception.
> > > It's ok when the property is a string.
> > >
> > > Can somebody told my why they made this change and how I fix this?
> > >
> > > Thanks,
> > >
> > > David
> > >
> > >
> > > org.apache.jasper.JasperException: Cannot find message resources under
> > > key org.apache.struts.action.MESSAGE
> > >         at
> > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap
> > > per.java:254)
> > >         at
> > >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
> > >         at
> > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> > >         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > >         at
> > > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationD
> > > ispatcher.java:684)
> > >         at
> > > org.apache.catalina.core.ApplicationDispatcher.doForward(Applicati
> > > onDispatcher.java:432)
> > >         at
> > > org.apache.catalina.core.ApplicationDispatcher.forward(Application
> > > Dispatcher.java:356)
> > >         at
> > > org.apache.struts.action.RequestProcessor.doForward(RequestProcess
> > > or.java:1069)
> > >         at
> > > org.apache.struts.action.RequestProcessor.processForwardConfig(Req
> > > uestProcessor.java:455)
> > >         at
> > > org.apache.struts.action.RequestProcessor.process(RequestProcessor
> > > .java:279)
> > >         at
> > >
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> > >         at
> > > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> > >         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > >         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > >         at
> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
> > pplicationFilterChain.java:247)
> > >         at
> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
> > > onFilterChain.java:193)
> > >         at
> > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
> > > erValve.java:256)
> > >         at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> > > text.invokeNext(StandardPipeline.java:643)
> > >         at
> > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> > > java:480)
> > >         at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >         at
> > > org.apache.catalina.core.StandardContextValve.invoke(StandardConte
> > > xtValve.java:191)
> > >         at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> > > text.invokeNext(StandardPipeline.java:643)
> > >         at
> > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> > > java:480)
> > >         at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >         at
> > >
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
> > >         at
> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv
> > > e.java:180)
> > >         at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> > > text.invokeNext(StandardPipeline.java:643)
> > >         at
> > > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat
> > > cherValve.java:171)
> > >         at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> > > text.invokeNext(StandardPipeline.java:641)
> > >         at
> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv
> > > e.java:172)
> > >         at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> > > text.invokeNext(StandardPipeline.java:641)
> > >         at
> > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> > > java:480)
> > >         at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >         at
> > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngine
> > > Valve.java:174)
> > >         at
> > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
> > > text.invokeNext(StandardPipeline.java:643)
> > >         at
> > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> > > java:480)
> > >         at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > >         at
> > >
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> > >         at
> > >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
> > >         at
> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.pr
> > > ocessConnection(Http11Protocol.java:392)
> > >         at
> > >
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
> > >         at
> > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thre
> > > adPool.java:619)
> > >         at java.lang.Thread.run(Thread.java:479)
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> > >
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>



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