thanks.
but according to the doc, I can use the form bean for Struts creator. I
tried Spring creator, it works if I only use the bean name not fully
qualified class name though.


On 4/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> ---------- Original Message -----------
> From: "Lixin Chu" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <user@struts.apache.org>
> Sent: Mon, 17 Apr 2006 07:56:46 +0800
> Subject: DWR throws errors
>
> > Hi,
> > I am trying my luck to see if someone in this forum has any idea of why
> - i
> > have not got response from DWR forum so far.
> >
> > I am using DWR 1.1.1 (also tried 2.0M1) with Struts 1.2.8. My DWR
> > configuration is like this:
> >
> >    <create creator="struts" javascript="GetMultipleUsers">
> >       <param name="formBean" value="getUserListForm"/>
> >    </create>
> Here is the example from there docs
> http://getahead.ltd.uk/dwr/getstarted
>
> <dwr>
> <allow>
>    <create creator="new" javascript="JDate">
>      <param name="class" value="java.util.Date"/>
>      <!--
>      I am guessing that you are missing the fully qualified name here
>      -->
>    </create>
>    <create creator="new" javascript="Demo">
>      <param name="class" value="your.java.Bean"/>
>    </create>
> </allow>
> </dwr>
> >
> > Here is the error message:
> > ------------------------------
> > WARN org.directwebremoting.struts.StrutsCreator - Using a
> > FakeHttpServletRequedt as part of setup
> > ERROR org.directwebremoting.impl.DefaultCreatorManager
> > - Error loading class for creator
> > 'StrutsCreator[GetMultipleUsers]'.
> > java.lang.NullPointerException
> >       at
> > org.directwebremoting.struts.StrutsCreator.getType(StrutsCreator.java
> :120)
> > .....
> >
> > Looking at DWR StrutsCreator source, it seems that it can not find the
> > formBean configuration. Anything else I need to config ?
> >
> > I tried Spring bean, it works though.
> >
> > thanks in advance,
> > lixin
> ------- End of Original Message -------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to