struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adolfo Miguelez" <pell...@hotmail.com>
Subject RE: DynaBeans, DynaClass, DynaMen
Date Mon, 01 Jul 2002 17:14:51 GMT

By using dynabeans should not need to modify the custom tags at all. 
BeansUtils package is able to inspect dynabeans itself.

The advantage is that you have not to worry about making your modified 
custom tags for each new release.

Adolfo

>From: wbchmura@Ensign-BickfordInd.com
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: struts-user@jakarta.apache.org
>Subject: RE: DynaBeans, DynaClass, DynaMen
>Date: Mon, 1 Jul 2002 12:10:51 -0400
>
>
>Yep, the display tag library...
>
>I spent some time looking at the source last night, and modifying it
>should not be that bad...
>
>Thanks for the feedback!
>
>-----Original Message-----
>From: pelly69 [mailto:pelly69@hotmail.com]
>Sent: Monday, July 01, 2002 11:05 AM
>To: struts-user
>Subject: Re: DynaBeans, DynaClass, DynaMen
>
>
>I have implemented the same approach: getting results from a database
>query
>and wrap them in an ArrayList of dynabeans. In that way I can use the
>Struts
>Customs tags in order to render the dynabeans content in the JSP.
>
>Custom Tags rely on Commons BeanUtils package which is able to inspect
>any
>Java Bean or Dynabean to pick up the information.
>
>I think your approach is correct,
>
>Adolfo.
>
>
> >From: wbchmura@Ensign-BickfordInd.com
> >Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> >To: struts-user@jakarta.apache.org
> >Subject: DynaBeans, DynaClass, DynaMen
> >Date: Mon, 1 Jul 2002 10:39:46 -0400
> >
> >
> >...anyone remember DynaMen?
> >
> >Anyhow...  I got a Dynabean mechanism working that builds a DynaBean
> >based on the metadata of a SQL result set, populates and array of the
> >little buggers and passes it back to me.  For displaying I have a tag
> >library that does not like a call to get('name') as the field name.
> >What is the best way to get around this?
> >
> >(A) Write a bean to encapsulate the dynabean and provide hard method
> >gets and sets
> >(B) Modify the tag library to detect a DynaBean and access it via a get
> >and set (not my library)
> >(C) Don't use dynabeans for this sort of thing
> >(D) None of the above you dufus
> >
> >I can do any of the above - I just want to make sure that there is not
> >an obvious way I am missing.
> >
> >Thanks and happy monday
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
> ><mailto:struts-user-unsubscribe@jakarta.apache.org>
> >For additional commands, e-mail:
> ><mailto:struts-user-help@jakarta.apache.org>
> >
>
>_________________________________________________________________
>Join the world’s largest e-mail service with MSN Hotmail.
>http://www.hotmail.com
>
>
>--
>To unsubscribe, e-mail:
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
><mailto:struts-user-help@jakarta.apache.org>
>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: 
><mailto:struts-user-help@jakarta.apache.org>




<HTML>
      <HEAD>
             <TITLE>Adolfo's signature</TITLE>
      </HEAD>
      <BODY>
             <center><b><em>Adolfo Rodriguez Miguelez</em><b></center>

      </BODY>
      </HTML>





_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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


Mime
View raw message