struts / DynaValidatorForm

From: Artur Wronski (a_wronski_at_REMOVEgazeta.pl)
Date: 03/31/04


Date: Wed, 31 Mar 2004 18:12:38 +0200

Hi!

So I've two sites (under different domains). First side has this form-bean:

[CODE]

<form-bean name="logonForm"
type="org.apache.struts.validator.DynaValidatorForm">

    <form-property name="email" type="java.lang.String"/>

    <form-property name="password" type="java.lang.String"/>

</form-bean>

[/CODE]

Second site has form like this:

[CODE]

<form-bean name="logonForm"
type="org.apache.struts.validator.DynaValidatorForm">

    <form-property name="login" type="java.lang.String"/>

    <form-property name="code" type="java.lang.String"/>

</form-bean>

[/CODE]

So both sites have form-beans with the same name but which are different.

When I deploy first site (copy war) it works correct. But when I deploy
second site and access the page which use this form a get error like this:

[CODE]

2004-03-31 18:25:38,824 ERROR [org.apache.struts.util.RequestUtils] Error
creating form bean of class org.apache.struts.validator.DynaValidatorForm

java.lang.IllegalArgumentException: Invalid property name 'login'

        at
org.apache.struts.action.DynaActionForm.getDynaProperty(DynaActionForm.java:
598)

[...]

javax.servlet.jsp.JspException: Exception creating bean of class
org.apache.struts.validator.DynaValidatorForm: {1}

        at
org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:563)

        at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:520)

[..]

[/CODE]

But when I remove first site (delete war file) and deploy second site once
again it works correct. Than, when I try to deploy first site again I
receive the same error like for the second site for the first time.

So the problem looks like struts mistake this two forms definition?
:confused:

The problem disappear when the forms have different names but this is not a
solution. Those sites are under different domain but run under the same
server (Jboss 3.2.3 + Tomcat 5.0.16). I checked this with struts 1.1 and 1.2

Does anyone have any idea what's the problem? I've lost more than 17 hours
by now because of this :argh:

Please help,

Artur :(



Relevant Pages

  • Re: Structuring informational content for commercial site
    ... outweighed by the fact that the reader (who is my ultimate ... redirected back to the first site. ... The "authority" status of my original site is diluted in the ... The second site gets about 300 visitors per day. ...
    (alt.internet.search-engines)
  • Re: struts / DynaValidatorForm
    ... > So both sites have form-beans with the same name but which are different. ... > When I deploy first site (copy war) it works correct. ... > creating form bean of class org.apache.struts.validator.DynaValidatorForm ...
    (comp.lang.java.programmer)
  • Re: iWeb sites
    ... They live in different websites within iWeb. ... then the first site is always shown. ... and opening of the first site when a second site was published. ... (both on the web and the local folder). ...
    (comp.sys.mac.apps)
  • Migration of a WIN2000 "native mode" domain to WINSERVER 2003 doma
    ... In the first site, there are TWO DC's and one of ... In the second site, there are other TWO DC's, one of these runs the GC, DNS ... Only a single GC DOMAIN CONTROLLER to serve the internal LAN ...
    (microsoft.public.windows.server.active_directory)
  • Re: Migration of a WIN2000 "native mode" domain to WINSERVER 2003 doma
    ... "Moreno" wrote in message ... > In the first site, there are TWO DC's and one ... > In the second site, there are other TWO DC's, one of these runs the GC, ... > Only a single GC DOMAIN CONTROLLER to serve the internal LAN ...
    (microsoft.public.windows.server.active_directory)