Yeah, I think that there is another issue.
I have added the name of the bean in the action
mapping, the <html:textarea> still gives problems.
This one works:
<textarea name="messageBody" rows="15" cols="62"
WRAP></textarea>
This one does not work:
<html:textarea property="messageBody" rows="15"
cols="62" WRAP></html:textarea>
Okay, the action mapping is like:
<action
path="/MailMessage"
parameter=".message.Form"
name="messageForm"
type="org.apache.struts.actions.ForwardAction"/>
and the <form-bean .... tag is like:
<form-bean
name="messageForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property
name="msgtype"
type="java.lang.String"/>
<form-property
name="sender"
type="java.lang.String"/>
<form-property
name="receiver"
type="java.lang.String"/>
<form-property
name="messageTopic"
type="java.lang.String"/>
<form-property
name="priority"
type="java.lang.String"/>
<form-property
name="distribution"
type="java.lang.String"/>
<form-property
name="messageBody"
type="java.lang.String"/>
</form-bean>
--- Jim Barrows <[EMAIL PROTECTED]> wrote:
>
>
> > -----Original Message-----
> > From: Matt Bathje [mailto:[EMAIL PROTECTED]
> > Sent: Friday, September 10, 2004 2:38 PM
> > To: Struts Users Mailing List
> > Subject: Re: [SOLVED]Cannot retrieve definition
> for form bean null
> >
> >
> > Jim Barrows wrote:
> >
> >
> > <snip>
> >
> >
> > >
> > >
> > > Not the form bean class... The action definition
> in struts-config.
> > > <action path="/borrowerInfo"
> > > name="yourFormName"
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<need
> this!!!!!!!
> > >
> type="com.sssc.csr.web.actions.ShowBorrowerAction">
> > > <forward name="success"
> > path="borrowerInfo"></forward>
> > > </action>
> > > You have to tell the action definition what form
> your
> > using, regardless of whether it is DynaForm,
> ValidatorForm or
> > ActionForm.
> > > When one of the <html: tags gets executed it
> looks for the
> > <html:form tag, grabs the action and then looks in
>
> > struts-config for the form name THEN it creates
> the tag. You
> > don't have a name parameter, so it's saying that
> it's null.
> > >
> > >
> > >
> > >>
> >
> > Jim - doesn't she have this correct already? Based
> on what I
> > see here I
> > think so:
>
> Last time I saw her code, no she didn't have the
> name...in a message I posted to her I added that
> line right about where that one is...
>
> If she does have that, then yes, there is another
> issue.
>
>
> >
> >
> > <snip>
> >
> > >>>>>>>
> > >>>>>>> <action
> > >>>>>>> path="/message/SendMessage"
> > >>>>>>>
> type="org.dhsinfo.message.SendMessage"
> > >>>>>>> name="messageForm"
> > >>>>>>> scope="request"
> > >>>>>>> validate="false"
> > >>>>>>> input=".message.Form">
> > >>>>>>> <forward
> > >>>>>>> name="success"
> > >>>>>>>
> > >>>>>>>path="/confirmation/messageForwarded.jsp"/>
> > >>>>>>> </action>
> > >>>>>>>
> >
> >
> > <snip>
> >
> >
>
---------------------------------------------------------------------
> > 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]
>
>
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]