• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

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

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.








 
Ranch Hand
Posts: 856
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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;
}
 
reply
    Bookmark Topic Watch Topic
  • New Topic