• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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;
}
 
You know it is dark times when the trees riot. I think this tiny ad is their leader:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic