struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Collins" <james.coll...@blueyonder.co.uk>
Subject Re: Accessing an ID property of a bean using EL
Date Wed, 23 Jul 2003 20:15:00 GMT
Saul,

I am using the expression language version of the tags. It worked when I
used this:

<html:link page="viewFile.do?id=${folderDets.docID}">...</html:link>

But not when I used the other version. I would like to know why I could not
use ID as the property.

Regards

Jim.

----- Original Message -----
From: "Yuan, Saul (TOR-ML)" <Saul.Yuan@MacLaren.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Wednesday, July 23, 2003 8:38 PM
Subject: RE: Accessing an ID property of a bean using EL


To use the expression language ${..}, you have to use the contributed
html-el tag rather than the html tag, ie. <html-el:link ..., and
remember to define the html-el tag at the beginning of your jsp file.


Saul

> -----Original Message-----
> From: Jim Collins [mailto:james.collins@blueyonder.co.uk]
> Sent: Wednesday, July 23, 2003 3:23 PM
> To: Struts Users Mailing List
> Subject: Accessing an ID property of a bean using EL
>
>
>
>
>
> 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


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



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


Mime
View raw message