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 ="" Training</a> and project recovery in North East.
Open Source <a href ="" Management</a> basicPortal sofware
Best practice<a href ="" Support</a> v.1.1 helper ScafflodingXPress
_______________________________________________
MVC-Programmers mailing list
[EMAIL PROTECTED]
http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers