Réf. : Re: [MVC-Programmers] Struts: ActionForm Flexibility
"Raul DAVIDOVICH" <[email protected]> Fri, 27 Jun 2003 09:31:49 +0200
| Newsgroups | gmane.comp.java.mvc.devel |
|---|---|
| Message-ID | <OFA121F698.0B14967B-ONC1256D52.00295D86-C1256D52.00295D9F@caconcology.com> |
I learnt something new today.. Thank you very much ;-) Regards, --------------------------------------------------- Raul Davidovich Responsable Informatique Cvitkovic & Associés Consultants (33) 1 45 15 40 68 (33) 1 45 15 40 41 Fax ------------------------------------------------------- http://www.caconcology.com Vic Cekvenich <[email protected]> Envoyé par : [email protected] 26/06/2003 20:54 AST Veuillez répondre à mvc-programmers Pour : [email protected] cc : ccc : Objet : Re: [MVC-Programmers] Struts: ActionForm Flexibility Read : http://www.keyboardmonkey.com/next/index.jsp .V Will Liu wrote: >Hello, > >I need to see how flexible the ActionForm class can >be. It seems the nstandard way to use ActionForm >objects is to have strings as the instance >variables, i.e: > >SampleForm extends ActionForm { > String input; > > public String getInput() { > return this.input; > } > public void setInput(String input) { > this.input = input; > } > >} > >-- This works find for normal usage, however, I really >need an object inside the ActionForm class... >i.e. something of the nature: > >SampleForm extends ActionForm{ > Tuple input; > > public Tuple getInput(){ > returh this.input; > } > > public void setInput(Tuple a){ > this.input = a; > } >} > >Where Tuple would be something like: > >Tuple { > String one; > String two; > > getOne() ... > getTwo()... > > setOne()... > setTwo()... >} > > >--- > >I'm having a really hard time getting these values set >inside the Action class that deals with the form.... >if anyone has any experience with this >type of functionality, I would really appreciate any >help. thanks in >advance. > >-w > > > >===== >//*******************// >-- will liu >-- [email protected] > >__________________________________ >Do you Yahoo!? >SBC Yahoo! DSL - Now only $29.95 per month! >http://sbc.yahoo.com >_______________________________________________ >MVC-Programmers mailing list >[email protected] >http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers > > > > > -- Vic Cekvenich, Struts Instructor, 1-800-917-JAVA Advanced <a href ="baseBeans.com">Struts Training</a> and project recovery in North East. Open Source <a href ="baseBeans.com">Content Management</a> basicPortal sofware Best practice<a href ="baseBeans.com">Struts Support</a> v.1.1 helper ScafflodingXPress _______________________________________________ MVC-Programmers mailing list [email protected] http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers