• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cannot retrieve definition for form bean null - JSP Error

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please do not double post. Moving this to JSP.

Eric
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What framework are you using, Struts? This is important information that should be incldued in your post.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic