<html:form action="/MailMessage">
leads to the messageForm.jsp page that I had the
problem with.

<html:form action="/message/SendMessage"> is in the
messageForm.jsp page.

So, the action mappings are correct now.  

What caused the problem I had earlier today was the
missing name attribute in the action mapping.  

And the <html:textarea ..... tag should not have WRAP.
--- Jim Barrows <[EMAIL PROTECTED]> wrote:

> 
> 
> > -----Original Message-----
> > From: Caroline Jen [mailto:[EMAIL PROTECTED]
> > Sent: Friday, September 10, 2004 3:09 PM
> > To: Struts Users Mailing List
> > Subject: RE: [SOLVED]Cannot retrieve definition
> for form bean null
> > 
> > 
> > The <html:form ... tag looks like:
> > 
> > <html:form action="/message/SendMessage">
> 
> Okay, the action here needs to match the action you
> defined in your struts-config.xml, which according
> to what you've sent, means that this should be:
> 
> <html:form action="/MailMessage">
> 
> > 
> >     <html:area ..... tag
> 
> And this should be <html:textarea but I'm thinking
> that's a typo.
> 
> > 
> > </html:form>
> > 
> > --- Jim Barrows <[EMAIL PROTECTED]> wrote:
> > 
> > > 
> > > 
> > > > -----Original Message-----
> > > > From: Caroline Jen
> [mailto:[EMAIL PROTECTED]
> > > > Sent: Friday, September 10, 2004 2:51 PM
> > > > To: Struts Users Mailing List
> > > > Subject: RE: [SOLVED]Cannot retrieve
> definition
> > > for form bean null
> > > > 
> > > > 
> > > > 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:
> > > 
> > > And you have this surrounded by
> > > <html:form action="/MailMessage">
> > > 
> > > > <html:textarea property="messageBody"
> rows="15"
> > > > cols="62" WRAP></html:textarea>
> > > 
> > > </html:form> 
> > > 
> > > What does the <html:form look like?
> > > 
> > > 
> > > 
> > > 
> > > > 
> > > > 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>
> > > > > > 
> > > > > > >>>>>>>
> 
=== message truncated ===



                
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

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

Reply via email to