struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Developer" <develo...@fdplus.com>
Subject Re: REPOST: DynaActionForm submit error
Date Wed, 19 Jun 2002 17:12:10 GMT
I'm using Tiles, which I forgot to mention and the action mapping is
included below.

If I use ActionForm and compile my form class, then I'm OK.

the jsp look like so: (I'm using the struts layout extensions
http://struts.application-servers.com/)  I did try removing the dependency
on Struts-layout during my debug by elimination process.

<layout:text key="form.classified.dimensions"
property="attribute.dimensions" isRequired="true" styleClass="LABEL"/>

thanks.

     <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++ -->
     <!-- Classified actions create/read/update/delete -->
      <action path="/classified" name="classifiedForm"
              input="/tiles/base_layout.jsp" scope="session"
              parameter="reqCode"
              type="biz.isman.web.SuperDispatchAction" validate="false">
         <forward name="browse" path="definition.browse.classified" />
         <forward name="display" path="definition.display.classified" />
         <forward name="success" path="definition.browse.classified" />
         <forward name="failure" path="definition.display.classified" />
      </action>
      <!-- classified/select" -->
      <action path="/classified/select"
forward="/do/classified?reqCode=select"/>
      <!-- classified/new" -->
      <action path="/classified/new"
forward="/do/classified?reqCode=createEmpty"/>
      <!-- /classified/display/all -->
      <action path="/classified/display/all"
forward="/do/classified?reqCode=selectAll"/>
      <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++ -->



----- Original Message -----
From: "James Mitchell" <jmitchtx@telocity.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>; "Toni
Charlot" <toni@fdplus.com>
Sent: Wednesday, June 19, 2002 12:07 PM
Subject: RE: REPOST: DynaActionForm submit error


> Please provide the action mappings in your struts-config for:
> 1. how you are getting to the jsp
> 2. the action submitted to
>
> We can start there I think.
>
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://struts-atlanta.open-tools.org
>
> > -----Original Message-----
> > From: Toni Charlot [mailto:toni@fdplus.com]
> > Sent: Wednesday, June 19, 2002 11:32 AM
> > To: Struts Users Mailing List
> > Subject: REPOST: DynaActionForm submit error
> >
> >
> > Greetings gentlemen/women/persons,
> >
> > Sorry for the repost, just giving it a second shot.
> >
> > I've been having some difficultied using the new dyna action form.  I
was
> > able to pre-pupulate the form and display it but when I try to re-submit
I
> > get the exception below.    I'm using  Tomcat 4.0.3beta.  The
> > form is in the
> > request scope although I tried putting it in session scope as
> > well.  I tried
> > subclassing DynaActionForm and implement serializable.
> >
> > I just can't seem to get what's causing the IllegalArgumentException to
be
> > thrown.
> >
> > Thank you....
> >
> > <form-bean name="classifiedForm" dynamic="true"
> >                     type="org.apache.struts.action.DynaActionForm" >
> >         <form-property name="attribute"
> > type="com.fdplus.phonebook.Classified"/>
> >         <form-property name="attributeType" type="java.lang.String"
> > initial="com.fdplus.phonebook.Classified"/>
> >         <form-property name="task" type="java.lang.String"/>
> > </form-bean>
> >
> > <exception>
> > java.lang.IllegalArgumentException: No bean specified
> >            at
> > org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(P
> > ropertyUti
> > ls.java:777)
> >            at
> > org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:619)
> >            at
> > org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:504)
> >            at
> > org.apache.struts.util.RequestUtils.populate(RequestUtils.java:973)
> >            at
> > org.apache.struts.action.RequestProcessor.processPopulate(RequestP
> > rocessor.j
> > ava:795)
> >            at
> > org.apache.struts.action.RequestProcessor.process(RequestProcessor
> > .java:244)
> >            at
> > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1162)
> >            at
> > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:472)
> >            at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> >           .....
> > </exception>
> >
> >
> > --
> > 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>
>
>
>


--
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