This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes BeanUtils.populate.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "BeanUtils.populate.." Watch "BeanUtils.populate.." New topic
Author

BeanUtils.populate..

Mallik Avula
Ranch Hand

Joined: Nov 30, 2006
Posts: 86
HI all
i am using nested tag in my page, and i am getting the page well. but when i submit, i am doing the validation and redisplaying the form if any errors there.
that time i am getting problem.
my jsp code:


exception is:


any body can help?


Thanks & Regards<br />Mallik Avula<br />SCJP1.4
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I suspect this problem is occurring because you have placed your ActionForm in request scope and have not provided "lazy initialization" capability for your indexed getters. Because you have a fairly complex structure of questions and options that would be hard to recreate, I would recommmend that you specify session scope for the ActionForm in this case.

This article will give you some more insights as to why this is happening.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: BeanUtils.populate..
 
Similar Threads
Dynamic Form Elements - Exception
Unhandled exception: javax.servlet.ServletException: BeanUtils.populate
java.lang.IllegalArgumentException: Cannot invoke UploadForm.setUplaod - argument type mismatch
logic:iterate problem: NullPointerException
struts file uploading problem