wood burning stoves 2.0*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Empty Action Form" Watch "Empty Action Form" New topic

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"
<forward name ="success" path="/ReportDisplay.jsp"/>
<forward name ="failure" path="/Error.jsp"/>
i dont know exactly where i am missing something. i never had problems before.Any help...
Marc Peabody
pie sneak

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.
jQuery in Action, 2nd edition
subject: Empty Action Form