Automatic bean introspection in jsp form

2006-05-12 Thread Williams, Kevin C
Forgive me if this is simple but so far I haven't figured out the proper way to do this. I have an object (of type java.io.Object) that can be one of many potential beans. If I know the specific bean class ahead of time, I can write a jsp page with a form that has fields that correspond to the

RE: Automatic bean introspection in jsp form

2006-05-15 Thread Williams, Kevin C
Is it possible that I can use JSTL to solve this problem? > -Original Message- > From: Williams, Kevin C > Sent: Friday, May 12, 2006 6:27 PM > To: user@struts.apache.org > Subject: Automatic bean introspection in jsp form > > Forgive me if this is simple but so

Re: Automatic bean introspection in jsp form

2006-05-15 Thread Dave Newton
Williams, Kevin C wrote: > Is it possible that I can use JSTL to solve this problem? > JSTL? Don't really see how. You basically need to be able to generate HTML from an introspected bean, correct? Personally I'd skip doing this w/ Struts. Barring that, I'd write custom tags to do this (if I

Re: Automatic bean introspection in jsp form

2006-05-15 Thread Philihp Busby
I agree, writing your own tags would be a good, clean, modular way to do this. With JSTL, if you had a list of names of properties that one of your beans *could* have, this wouldn't be as much of a problem (see EL's empty operator). I don't know if this would be convenient through JAXB. On 5/15/