struts / DynaValidatorForm
From: Artur Wronski (a_wronski_at_REMOVEgazeta.pl)
Date: 03/31/04
- Next message: Bart_D: "Edit a Boolean in JTable"
- Previous message: Mark Osborn: "Re: Extracting DLL from JAR for use in JNI"
- Next in thread: Wendy S: "Re: struts / DynaValidatorForm"
- Reply: Wendy S: "Re: struts / DynaValidatorForm"
- Reply: Sudsy: "Re: struts / DynaValidatorForm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 :(
- Next message: Bart_D: "Edit a Boolean in JTable"
- Previous message: Mark Osborn: "Re: Extracting DLL from JAR for use in JNI"
- Next in thread: Wendy S: "Re: struts / DynaValidatorForm"
- Reply: Wendy S: "Re: struts / DynaValidatorForm"
- Reply: Sudsy: "Re: struts / DynaValidatorForm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|