I experimented a little bit:
1. I changed all
struts tags to html tags in my messageForm.jsp and I also excluded the opening <html:form> and closing </html:form> tag.
The action mapping shown below works fine. I am able to see the form that I want to display in the browser.
<action
path="/MailMessage"
parameter=".message.Form"
type="org.apache.struts.actions.ForwardAction"/>
2. I then added the opening <html:form> in the beginning of the messageForm.jsp and the closing </html:form> tag at the end of the messageForm.jsp.
I got the error message 'cannot retrieve definition for form bean null'
3. the <html:form> tag looks like (copied from my
code):
<html:form action="/message/SendMessage">
4. the action mapping in the struts-config.xml looks
like (copied from my code):
<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>
5. I have not yet prepared the SendMessage.java in the AppRoot/org/dhsinfo/message folder yet.
What could be the cause of the problem?