• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot retrieve definition for form bean null - JSP Error

 
mokshavathi pasuparthi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please do not double post. Moving this to JSP.

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What framework are you using, Struts? This is important information that should be incldued in your post.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
purushottaman dwarkanathan
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Frank Truong
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic