Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ServletException with BeanUtils.populate

 
tukai chakraborty
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am using DynaAction from struts 1.1 in building a form dynamically.
Say I have a purchase order form where there are multiple line items and
which are being added dynamically.
I have added couple of line items and then after a brief period when i try
to add more line items I get the above error javax.servlet.ServletException:BeanUtils.populate.
This occurs if there is session timeout which if I remove does not give the
above error,but which is not a viable solution.
Is there any way to get rid of this problem.
Looking forward to yours reply.
Thanks in advance
Koushik
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You said ::
This occurs if there is session timeout



Please check current session is invalid/valid (timeout) before call this method.

And sometime, you can set session is not expire in DD or in your source code.
 
tukai chakraborty
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i had tried out this option also but its not working.struts straight away calls the BeanUtils.populate method and hence resulting in the exception which i had said about.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic