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:[EMAIL PROTECTED]
> > Sent: June 30, 2003 1:06 PM
> > To: [EMAIL PROTECTED]
> > 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to