• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Returning null form object to Action class in WebSphere if i override reset method in my form class

 
Mallik Avula
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am overriding reset method in my form class. When i deploy the code in Jboss working fine.But in Websphere returning null form to Action calss.








 
Amandeep Singh
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the stack trace so that we can analyze the problem. ?
 
Mallik Avula
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am using ListUtils.lazyList inside the reset method .That is causing problem. I need to iterate the list inside the jsp. I am using nested tags for that reason i have overloaded reset method. This code is working fine when i deploy the code in Jboss, but returning null form object in websphere.

Please check the below code in form

public void reset(ActionMapping actionMapping, HttpServletRequest request)
{

params = ListUtils.lazyList(new ArrayList<ParamDefVO>(), new Factory()
{

public Object create()
{
return buildParams();
}
});

}

public ParamDefVO buildParams()
{
ParamDefVO paramDefVO = new ParamDefVO();
List options = ListUtils.lazyList(new ArrayList<ParamOptionsVO>(), new Factory()
{

public Object create()
{
return new ParamOptionsVO();
}
});
paramDefVO.setOptions(options);
return paramDefVO;
}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic