Then again, I was having the same problem under Websphere 4.0.4, using
precisely this sintax:

public String getId();
public void setId( String s );

I was using just an ordinary <bean:write name="mybean" property="id"/>
and it just wouln't find the property no matter how nicely I asked it :)
I had to change it to "themeId" to get it to work.

I had assumed then it had something to do with IBM's VM's
reflection mechanism... but that's just speculating :)

[]'s
- ventura

----- Original Message -----
From: "Jim Collins" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 23, 2003 5:16 PM
Subject: Re: Accessing an ID property of a bean using EL


> Thanks Adam. I must have missed that variation of capitalisation.
>
> Regards
>
> Jim.
> ----- Original Message -----
> From: "Adam Levine" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 23, 2003 8:32 PM
> Subject: Re: Accessing an ID property of a bean using EL
>
>
> > It has to deal with the way Java resolves bean fields where there are
> > multiple uppercase in a row.  I believe if you used .ID in your jsp it
> > should work.   I always get confused on how the rules work in resolving,
> so
> > I attempt to use as few caps in a row as possible.. ie, ID -> id ->
> > getId/setId -> myClass.id
> >
> >
> > From: "Jim Collins" <[EMAIL PROTECTED]>
> > Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Subject: Accessing an ID property of a bean using EL
> > Date: Wed, 23 Jul 2003 20:23:17 +0100
> >
> > Hi,
> >
> > I have a bean with the following methods:
> >
> > public String getID();
> > public void setID(String id);
> >
> > I am trying to access the id property in a page like this:
> >
> > <html:link page="viewFile.do?id=${folderDets.iD}">...</html:link>
> >
> > Where folderDets is my bean. I have tried different combinations of ID
> > capitalisation but none seem to work. If however I change the property
to
> :
> >
> > public String getDocID();
> > public void setDocID(String id);
> >
> > And access it like this:
> >
> > <html:link page="viewFile.do?id=${folderDets.docID}">...</html:link>
> >
> > It now works fine.
> >
> > Does anyone know why I can't have an ID property?
> >
> > Thanks
> >
> > Jim.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > _________________________________________________________________
> > The new MSN 8: smart spam protection and 2 months FREE*
> > http://join.msn.com/?page=features/junkmail
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to