struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Oliver" <ol...@appsaspeers.com>
Subject RE: [Struts-src] Creating a form-bean
Date Tue, 28 Jan 2003 22:15:54 GMT
;-)  

if (he != null)
	he = null;


Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036


-----Original Message-----
From: Sri Sankaran [mailto:Sri.Sankaran@sas.com] 
Sent: Tuesday, January 28, 2003 2:57 PM
To: Struts-User
Subject: [Struts-src] Creating a form-bean

I was wading through the source code to figure out the process of
creation of a form bean and found the following snippet in
o.a.s.u.RequestUtils in the method createActionForm (line 654 in the
1/28 nightly source):

(beginning at line 709)

if (configClass.isAssignableFrom(instance.getClass())) { 
  if (log.isDebugEnabled()) {
    // snip
  }
  return (instance);
}
return (instance);

Can you tell me what this the if-statement is accomplishing?  It looks
like 'instance' will be returned regardless.

Sri


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message