From: <gar...@ya...> - 2002-04-23 17:40:12
|
1. I answer the Jerry's message : ******************************** > Good Idea. Simper could then be used in other non-Servlet 2.3 (even > standalone) applications. What would the interface look like? As a specification, I am designing UML class diagrams with Together. I will send it to the Simper-dev-list for approval. > Some other To-Dos: > - Rewrite IInet to read tables and queries from XML file(s). > - Allow registration of tables from more than one connection. I agree. But maybe we could wait that Simper works with one single database ? Maybe (sure !) some bugs are remaining. What do you thnik of using Junit to validate the framewrok ? > - Add a registerView method that would use a SQL SELECT thus allowing > databases that do not support views to be used (e.g. mySQL). I don't understand this point, you are talking about > - Add additional data types. what data types are missing ? 2. Others suggestions & propositions ************************************ using DynaActionForm -------------------- In the Author class, Bryan wrote "The ActionForm for the Author data entry. Sigh.. Some day we'll use DynaBeans for this." With Struts 1.1, his dream comes true ! We can use DynaActionForm class which implements DynaBean. Using it I have replaced the following classes : - org.netmeme.simper.demo.forms.Author - org.netmeme.simper.demo.forms.Book - org.netmeme.simper.demo.actions.AuthorAdd - org.netmeme.simper.demo.actions.BookAdd by one single generic class : - org.netmeme.simper.demo.actions.AddAction Because I am lazy, I have added a method "copyDynaProperties" to SimperBean which copies the properties of the DynaActionForm for all cases where the property names are the same. This is supposed I have also updated the Sruts-config.xml to handle DynaActionForm, Here is an example : <form-bean name="author" type="org.apache.struts.action.DynaActionForm"> <form-property name="id" type="java.lang.Integer"/> <form-property name="name" type="java.lang.String"/> <form-property name="email" type="java.lang.String"/> </form-bean> Please find a war containing all the source-code on this url : http://rollerjm.free.fr/pro/simper/simper-demo-dyna.war Sorry, it is a "light" warn bc the Web-inf/lib directory does not contain the jars (except the latest commons-beanutils.jar). XML Configuration file ---------------------- In Simper class, Bryan wrote : " Following are registration methods, used by client code to set up the framework. It would be nice at some point to move such stuff to an XML file, rather than client code (currently, the user must create a class which implements ISimperInit)." As I am a newbie in XML, I am volunteer to program this stuff. I am curious, is there anybody else thant Jerry and me in this list ? Regards, Jean-Michel ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com |