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
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
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
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
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
truts Users Mailing List
Subject: Re: How to use a POJO inside Struts FormBean?
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.
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
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
Hi,
I am trying to use a POJO inside a Struts (1.2.7) FormBean,
but I am unable to access the fields inside the POJO.
package com.fmm.web.inventory.forms;
public class IDefForm extends ActionForm
{
private IDef iDef;
private List inventoryDefinitions;
...getters ..and..
If you want to set the description property of userObject:
property="userObject.description"
On Apr 11, 2005 2:21 AM, Neil Meyer <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I have a problem trying to write back to my form bean. Please tell me if the
> following is possible.
>
> I have the follow
It sounds like what you're trying to do can be done, but it would be
better if you clarify what you mean by setting a property within your
jsp to the userobject. Are you trying to populate a page variable in
the jsp, or are you trying to populate the userobject when the form in
the jsp is submitte
Hi All,
I have a problem trying to write back to my form bean. Please tell me if the
following is possible.
I have the following formbean :
private UserObject UserObject;
private ArrayList userDetails;
private String mustDisplayButton1;
private String mustDisplayButt
12 matches
Mail list logo