wood burning stoves*
The moose likes Struts and the fly likes Returning null form object to Action class in WebSphere if i override reset method in my form class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Returning null form object to Action class in WebSphere if i override reset method in my form class" Watch "Returning null form object to Action class in WebSphere if i override reset method in my form class" New topic
Author

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

Mallik Avula
Ranch Hand

Joined: Nov 30, 2006
Posts: 86
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.









Thanks & Regards<br />Mallik Avula<br />SCJP1.4
Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 844
Can you post the stack trace so that we can analyze the problem. ?


SCJP 1.4, SCWCD 5, SCBCD 5, OCPJWSD 5,SCEA-1, Started Assignment Part 2
My blog- http://rkydesigns.blogspot.com
Mallik Avula
Ranch Hand

Joined: Nov 30, 2006
Posts: 86
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;
}
 
wood burning stoves
 
subject: Returning null form object to Action class in WebSphere if i override reset method in my form class