aspose file tools*
The moose likes Struts and the fly likes  Cannot retrieve definition for form bean null  -  JSP Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " Cannot retrieve definition for form bean null  -  JSP Error" Watch " Cannot retrieve definition for form bean null  -  JSP Error" New topic
Author

Cannot retrieve definition for form bean null - JSP Error

mokshavathi pasuparthi
Greenhorn

Joined: Jul 29, 2007
Posts: 2
Hi Struts Users,

i am suffering alot with the JSP error "Cannot retrieve definition for form bean null "

By refering in Google, I got to know that the error will come because of the name attribute is not in the action mappings.

But, I am not using any ActionForm for my Action calss. so I mapped like this

<action type="com.boa.docwf.rfax.accountauto.action.adminutils.DisplayInActiveUsers" input="index.jsp" parameter="method" scope="request" path="/displayinactiveusers">

<forward name="inActiveUserAccount" path="/jsp/ViewInActiveUser.jsp" />

</action>


I am getting the jsp error.

Please do let me know the reason for this.
THanks in Advance
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Please do not double post. Moving this to JSP.

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60057
    
  65

What framework are you using, Struts? This is important information that should be incldued in your post.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Originally posted by mokshavathi pasuparthi:
But, I am not using any ActionForm for my Action calss.

That's the problem. If you want to reference an action in an <html:form> tag, it must reference an ActionForm. Even if you don't think you need it, you must define it and have your action mapping reference it.


Merrill
Consultant, Sima Solutions
purushottaman dwarkanathan
Greenhorn

Joined: Apr 26, 2005
Posts: 25
The action form will contain the bean representation of the form that you have submitted for processing. Check whether the object type you are trying to access, is explicitly put in the request or not.


IBM Certified SOA Associate
Frank Truong
Ranch Hand

Joined: Nov 19, 2002
Posts: 39
Merrill Higginson wrote:
Originally posted by mokshavathi pasuparthi:
But, I am not using any ActionForm for my Action calss.

That's the problem. If you want to reference an action in an <html:form> tag, it must reference an ActionForm. Even if you don't think you need it, you must define it and have your action mapping reference it.


Since I am a newbie to Struts(1.x.x), I need some of your votes that the above statement is true! :?:

Thank you all.
Frank
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot retrieve definition for form bean null - JSP Error
 
Similar Threads
html:form and ForwardAction
Error: Cannot retrieve mapping for action /Name
Cannot Retrieve Definition for Form Bean Null
DynaActionForm with ActionMapping
"Cannot retrieve definition for form bean" error