wood burning stoves*
The moose likes Struts and the fly likes Empty Action Form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Empty Action Form" Watch "Empty Action Form" New topic
Author

Empty Action Form

Rashid Darvesh
Ranch Hand

Joined: Feb 13, 2004
Posts: 189
I am having problem with my action form. when i try to acess the action form from the action class the action form is empty
here is just snippet of my html:form decleartion
<html:form method="post" action="ReportRequest.do" name= "reportRequestForm" type ="com.edmunds.eds.report.controller.ReportRequestForm">
and i do have the following entties in the struts-config.xml
for action form bean definitions it is
<form-bean nane = "reportRequestForm" type = "com.edmunds.eds.report.controller.ReportRequestForm" />
and the action mapping it is
<action path="/ReportRequest"
type="com.edmunds.eds.report.controller.ReportRequestAction"
name="reportRequestForm"
scope="request"
validate="true"
input="/ReportRequest.jsp">
<forward name ="success" path="/ReportDisplay.jsp"/>
<forward name ="failure" path="/Error.jsp"/>
</action>
i dont know exactly where i am missing something. i never had problems before.Any help...
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

For starters, it should be <form-bean name
I would also leave out name and type on your html:form.
If it's still not working I'd like you to try a quick test - set your form's action-mapping to session scope instead of request. It will help to diagnose the problem. Let us know what happens.


A good workman is known by his tools.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Empty Action Form