It won't really matter too much what you call the property internally, e.g. you can have:
private String yadaYadaYada; public String getBlahBlahBlah(); And no one externally will care. The real problem is just that the *external* property name is always, by definition, everything to the right of the "get" and to the left of the parentheses, with the first letter lower-cased. Thus the property reference above would be blahBlahBlah. So to make the original work, all you need to do is change the property reference in your column tag, e.g.: <display:column property="pat_First_Name" title="PatientFirstName" /> This assumes, of course, that your bean does have a getPat_First_Name() method. Also, in general, the bean naming conventions don't have '_'s in them (that looks like an SQL column name carried over directly; are you using something to create DynaBean-like thingies off of db tables?). Why not just name the property patientFirstName, with a getPatientFirstName() method? It's a lot more readable, IMO. But this last paragraph is just MO, FWIW :) Rick Herrick [EMAIL PROTECTED] > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:displaytag-user- > [EMAIL PROTECTED] On Behalf Of Brad Balmer > Sent: Monday, June 27, 2005 2:32 PM > To: [email protected] > Subject: Re: [displaytag-user] [displaytag - Help] Problems in displaying > the results in JSP > > I believe that to follow the JavaBean specs you would have to have your > property defined as: > > private String pat_First_Name; > > with: > > public String getPat_First_Name() {return this.pat_First_Name;} > public void setPat_First_Name(String value) {this.pat_First_Name = value;} > > Declaring a property that starts with a capital should NOT work. > > > > SourceForge.net wrote: > > >Read and respond to this message at: > >https://sourceforge.net/forum/message.php?msg_id=3222140 > >By: knvarma > > > >Hi > > > >I am trying to display the values from an arrayList to the JSP,The values > are > >in the arryalist are in the form of Bean Objects. > > > >I am trying to display these bean object values in the JSP page by using > the > >following Code. > > > > request.setAttribute( "test2",LetterDisplayList); > > > > > > > > <display:table name="test2" pagesize="20" requestURI="/SAReport1.do"> > > <display:column property="Pat_First_Name" title="PatientFirstName" /> > > <display:setProperty name="paging.banner.placement" value="bottom" > /> > > > > </display:table> > > > >But it is giving an error message like "Error looking up property > "Pat_First_Name > >in object type "com.model.ClaimsInformation" > > > >But the bean methods are declared in ClaimsInformation in correct manner. > > > >I appreciate if someone helps me in this regard > > > >Thanks in advance !!! > > > >But > > > >______________________________________________________________________ > >You are receiving this email because you elected to monitor this forum. > >To stop monitoring this forum, login to SourceForge.net and visit: > >https://sourceforge.net/forum/unmonitor.php?forum_id=249318 > > > > > >------------------------------------------------------- > >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > >from IBM. Find simple to follow Roadmaps, straightforward articles, > >informative Webcasts and more! Get everything you need to get up to > >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > >_______________________________________________ > >displaytag-user mailing list > >[email protected] > >https://lists.sourceforge.net/lists/listinfo/displaytag-user > > > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ displaytag-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/displaytag-user

