File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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="" name= "reportRequestForm" type ="">
and i do have the following entties in the struts-config.xml
for action form bean definitions it is
<form-bean nane = "reportRequestForm" type = "" />
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.
I agree. Here's the link:
subject: Empty Action Form
It's not a secret anymore!