Re: How to use a POJO inside Struts FormBean?

2006-01-16 Thread Laurie Harper
is problem does occur. But why? Does reflection not work when only one character is changed? Thanks, Karan -Original Message- From: Rick R [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 5:34 PM To: Struts Users Mailing List Subject: Re: How to use a POJO inside Struts

RE: How to use a POJO inside Struts FormBean?

2006-01-16 Thread Gupta, Karan
Sent: Thursday, January 12, 2006 5:34 PM To: Struts Users Mailing List Subject: Re: How to use a POJO inside Struts FormBean? Gupta, Karan wrote: > / CLASS IDefForm ***/ > public class IDefForm extends ActionForm > { > > private IDef iDef; Did you try renami

Re: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Rick R
Nevermind. I see that your last reply Karan somehow got knocked out of this thread. (Possibly you started a new message and just pasted in the subject? since it ended up with a different MessageID in the header which is what my Thunderbird client uses for threading). Rick R wrote: Gupta, Kara

Re: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Rick R
Gupta, Karan wrote: / CLASS IDefForm ***/ public class IDefForm extends ActionForm { private IDef iDef; Did you try renaming the property like Hubert suggested? If not, that iDef will DEFINITELY cause the problem that you mention. Change private IDef iDef; to something like IDef i

RE: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Gupta, Karan
Hi Hubert, I tried your method, by changing the jsp to use IDef.partNumber. It works perfectly. Thanks. -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 3:24 PM To: Struts Users Mailing List Subject: Re: How to use a POJO inside Struts

RE: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Gupta, Karan
nventoryDefinitions(List inventoryDefinitions) { this.inventoryDefinitions = inventoryDefinitions; } } I have not looked at nested tags -- but I'll check that out. Thanks again, Karan -Original Message- From: Torgeir Veimo [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 3:18 PM To: S

Re: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Hubert Rabago
You'll need to rename your "iDef" property if that is what you're calling it, via getIDef/setIDef. That pair will result in a property name of "IDef". If you'd rather not change your accessor methods, then use "IDef.partNumber" instead of "iDef.partNumber". [Wendy can quote the JavaBean spec rel

Re: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Torgeir Veimo
On Thu, 2006-01-12 at 15:15 -0800, Gupta, Karan wrote: > > I get this exception: > javax.servlet.ServletException: No getter method for property > iDef.partNumber of bean org.apache.struts.taglib.html.BEAN > > So what is the way to achieve what I am trying to do? > What am I doing wrong? Probab