File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes DynaValidatorForm - very strange problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "DynaValidatorForm - very strange problem" Watch "DynaValidatorForm - very strange problem" New topic
Author

DynaValidatorForm - very strange problem

Artur Wronski
Greenhorn

Joined: Dec 26, 2003
Posts: 3
Hi!
So I've two sites (under different domains). First side has this form-bean:

Second site has form like this:

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:

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?
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
Please help,
Artur
poornima balagopal
Ranch Hand

Joined: Dec 02, 2003
Posts: 83
Hi,
Can you try this by combining the two form to one i mean create only one form with all these three properties
login
password
code
I think if you try this way it will work. You can use the properties according to the requirement. I mean in one page if you want only login and password that you can give .
I dont have much idea ok? I answered it as the way i felt
 
Consider Paul's rocket mass heater.
 
subject: DynaValidatorForm - very strange problem
 
Similar Threads
JSP, Struts, Bean Help
Ajax-Chat project
Need a simple project in struts
validation with struts1.1 problem
Error while trying NewsLetter Example