Struts: ActionForm Flexibility
Will Liu <[email protected]> Thu, 26 Jun 2003 16:50:17 -0700 (PDT)
| Newsgroups | gmane.comp.java.mvc.devel |
|---|---|
| Message-ID | <[email protected]> |
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