File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Empty Action Form

 
Rashid Darvesh
Ranch Hand
Posts: 189
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic