Ed Griebel wrote:
> If you only need to get predefined variables, you can use Jakarta
> BeanUtils or PropertyUtils on the object. For instance, with a form
> bean ActionForm form:
>
> String val = BeanUtils.getProperty("someProperty");
> Object valAsOriginalClass = PropertyUtils.getProperty("someP
If you only need to get predefined variables, you can use Jakarta
BeanUtils or PropertyUtils on the object. For instance, with a form
bean ActionForm form:
String val = BeanUtils.getProperty("someProperty");
Object valAsOriginalClass = PropertyUtils.getProperty("someProperty");
BeanUtils.setPrope
Gareth Evans wrote:
> You can't do either of these things!
Right.
>
> AFAIK you can't do dynamic casting in java, although in
> java 5 you may be able to utilise the Class.cast method.
I did it another way now:
I try to do the fm's and catch a possible cast-exception. All needed
values are stor
You can't do either of these things!
AFAIK you can't do dynamic casting in java, although in
java 5 you may be able to utilise the Class.cast method.
Gareth
Anil Kumar T wrote:
You got to include one more step as mentioned below.
Class classDefinition = Class.forName(ClassName_as_string);
Obj
You got to include one more step as mentioned below.
Class classDefinition = Class.forName(ClassName_as_string);
Object obj = classDefinition.newInstance();
classDefinition afc = (obj)fm;
Anil.
-Original Message-
From: Andreas Hartmann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 26,
5 matches
Mail list logo