RE: [Proposal] - Form Transformations

2002-02-15 Thread Porter, Roy
I am interested in this, and agree with Ted that it should be part of the Struts validator. Time permitting, I should be able to help out with this, I am pretty conversant with David's validator code. I can't find Rey's package in the commons though ? There's also the new conversion functionalit

DynaActionFormClass error ?

2002-02-20 Thread Porter, Roy
In the DynaActionFormClass, in the introspect method, shouldn't the if on the line : if (!beanClass.isAssignableFrom(DynaActionForm.class)) { be the other way round, i.e: if (!DynaActionForm.class.isAssignableFrom(beanClass)) { Roy. -- To unsubscribe, e-mail:

RE: DynaActionFormClass & set-property

2002-02-21 Thread Porter, Roy
I'm trying to add regular Javabean style properties, as well as dynamic properties. an excerpt from the struts-config would be something like: So in effect, the XXDynaActionForm class simply adds 2 properties to the standard DynaActionForm, and lik

RE: DynaActionFormClass & set-property

2002-02-21 Thread Porter, Roy
Answer in line ... > > I'm trying to add regular Javabean style properties, as > well as dynamic > > properties. > > > > Ah ... then you're not going to like the current implementations of > DynaBeans very much. They currently represent themselves as > having *only* > the set of dynamic prope

RE: VisualAge 3.5.4 : WTE and Struts... no luck

2002-02-22 Thread Porter, Roy
Try changing your webapp file, to specify the location of your struts-config differently, this is what I'm using: ../web/WEB-INF/struts-config.xml Roy. > -Original Message- > From: Patrick Logé [mailto:[EMAIL PROTECTED]] > Sent: 22 February 2002 11:11 > To: Stru

RE: Validator/Tiles integration in Struts

2002-03-11 Thread Porter, Roy
Additional feature request : a getConstant(key) method in the Form class, viz: /** * Retrieve a Constant based on the constant name. */ public Constant getConstant(Object key) { Constant c = null; Object o = hConstants.get(key); if (o != null) {

[Patch] DynaActionFormClass.

2002-03-13 Thread Porter, Roy
>From introspect method in DynaActionFormClass if (DynaActionForm.class.isAssignableFrom(beanClass)) { this should be if (!DynaActionForm.class.isAssignableFrom(beanClass)) { I raised this a couple of weeks ago (the whole line was the other way round then). I was ignored ...

FormTag problem with VisualAge

2002-03-13 Thread Porter, Roy
Whenever I get a new copy of the Struts Source, I have to go in and make the following change to the FormTag java code: >From doEndTag: Remove: pageContext.removeAttribute(Constants.BEAN_KEY, PageContext.REQUEST_SCOPE); pageContext.removeAttri

RE: DynaActionForm equivalent to instanceOf

2002-03-25 Thread Porter, Roy
Check it's a DynaActionForm, cast it and then use getDynaClass().getName ... viz: String formName = null; if (form instanceof DynaActionForm) { DynaActionForm dForm = (DynaActionForm)form; formName = dForm.getDynaClass().getName(); } Roy. > -Original Message- > From: Anthony Mar

RE: DynaActionForm equivalent to instanceOf

2002-03-25 Thread Porter, Roy
Or alernatively, of course, just use mapping.getName() . > -Original Message- > From: Porter, Roy [mailto:[EMAIL PROTECTED]] > Sent: 25 March 2002 09:12 > To: 'Struts Developers List' > Subject: RE: DynaActionForm equivalent to instanceOf > > >