You need to associate a form-bean with an action to which a form will be
submitted.
If you don't have an ActionForm to use, try an empty form bean:

<form-beans>
    <form-bean
        name="emptyForm"
        type="org.apache.struts.action.DynaActionForm"/>
</form-beans>

and then add 'name="emptyForm"' in your action mapping:

> <action
>     roles="administrator,editor,contributor"
>     path="/message/ListThreads"
      name="emptyForm"
>     type="org.apache.struts.scaffold.ProcessAction"
>     parameter="org.apache.artimus.message.ListThread">
>    <forward
>             name="success"
>             path="/signin/Welcome.jsp"/>
> </action>


Hmm... in your case, however, you're using <html:select>, so you really
should have a form bean.  Use the form bean that has the dispatch property.

When the form is submitted, your action will receive an instance of the form
bean you've declared, with the values entered on the form.

hth,
Hubert

--- Caroline Jen <[EMAIL PROTECTED]> wrote:
> I got the root cause of the problem:
> 
> javax.servlet.ServletException: Cannot retrieve
> definition for form bean null
> 
> I know that I screwed up part of the struts-config.xml
> file.  Please point out my problem:
> 
> In my menu.jsp file, I have
> 
> <html:form action="/message/ListThreads">
> <TR>
>     <TD class="option">
>       <BUTTON TYPE="submit" NAME="submit"
> VALUE="submit" STYLE="font: 10pt sans-serif White;
> background:#FFCE9C; width:130px; height:30px">View
> Messages</BUTTON>
>     </TD>
>     <TD nowrap class="option">
>       sorted by
>       <html:select size="1" property="dispatch"
> onchange="document.forms[4].elements[2].focus()">
>       <html:options collection="SORT" property="value"
> labelProperty="label"/>
>       </html:select>
>     </TD>
>     <TD class="option">
>       in 
>       <html:select size="1" property="dispatch"
> onchange="document.forms[5].elements[2].focus()">
>       <html:options collection="ORDER"
> property="value" labelProperty="label"/>
>       </html:select>
>       order
>     </TD>
> </TR>
> </html:form>
> 
> and in my struts-config.xml, I have:
> 
> <action
>     roles="administrator,editor,contributor"
>     path="/message/ListThreads"
>     type="org.apache.struts.scaffold.ProcessAction"
>     parameter="org.apache.artimus.message.ListThread">
>    <forward
>             name="success"
>             path="/signin/Welcome.jsp"/>
> </action>
> 
> 
> 
>       
>               
> __________________________________
> Do you Yahoo!?
> Yahoo! Movies - Buy advance tickets for 'Shrek 2'
> http://movies.yahoo.com/showtimes/movie?mid=1808405861 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



        
                
__________________________________
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 

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

Reply via email to