| 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: 15362
|
|
Please do not double post. Moving this to JSP. Eric
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56547
|
|
|
What framework are you using, Struts? This is important information that should be incldued in your post.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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
|
 |
 |
|
|
subject: Cannot retrieve definition for form bean null - JSP Error
|
|
|