Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot retrieve definition for form bean StudentBean on action /studentList?listAction=acceptRejectU

 
Sandeep Jidagi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All...

I'm getting the above mentioned error please help me out..
I'm pasting my sample codes below. I tried to remove unwanted parts of code..
Struts-config.xml


display.jsp



Error messages
 
krishna sv
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually mentioned action type in UI component is being same as in action path in struts config file,its a way we have to put names both are same.we are requested to one and matched with the action path-name in action-mappings should be same in this situation.Just change those if its working then ok else let me know the reason.

Thanks,
Venkat.
 
Sandeep Jidagi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Venkat,

As You suggested I changed the action path name different from action type in UI.

I got the below error.
 
Shankar Tanikella
Ranch Hand
Posts: 329
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sandeep,
Change capital 'B' to small. It should work.

Aditionally, is not correct way to set a forward
 
Sandeep Jidagi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.. shankar..
I cannot change the 'B' to small. cause its the name of my Bean Class. Even i'm using that name in different places and its working fine. and secodn suggestion i made change to it: here is the change :


and its the same error i'm still facing.
Plese Help Me...
 
Shankar Tanikella
Ranch Hand
Posts: 329
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sandeep,
I am not pointing to your bean, I mean the bold B in form-Bean used in the above line
 
Sandeep Jidagi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.. Shankar...

Thank You.. That Error is gone.. I'll forward with this. I'll post if any errors I found.
 
Sandeep Jidagi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shankar Tanikella,

I made all the changes about not finiding Bean. Now i'm getting the new error, error line pasted below. Even I pasted my requestListDisplay.jsp and struts-config.xml files.

No getter method available for property selectedStudents for bean under name StudentBean

requestListDisplay.jsp


struts-config.xml


Please Help Me.
 
Shankar Tanikella
Ranch Hand
Posts: 329
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sandeep,
Please close the thread which was resolved and create a new one.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic