In article <[EMAIL PROTECTED]>, Hubert Rabago <[EMAIL PROTECTED]> wrote:
> There was only one entry for the two similarly named forms. Checking the > fields of the form showed me that only the latest definition of a form with a > given name is recognized. > > So, you should probably add a formbean declaration (with a different name) > for your action form, and also add another mapping for the same action. It > can be the same ActionForm and Action object, but would need different > mappings in struts-config. I tried this, but it causes other problems. For example, on the resulting JSP, there are <bean:write> tags which need to refer to the form name. But when I have two possible action-mappings with two form beans, I have no way of knowing which one is being used. I suppose I could use logic tags to test for this, but it would mean a lot of duplicated code. I tried writing a tag which extends <html:form>, and this seems to work. I added an attribute for the form name, so it can be set independently of the bean name. I'll probably also have to extend the JavaScript validator tag if I want to use that, since it needs the form name as well. But it would be nice if this were built into Struts. Jacob --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]