I believe this is the same that was reported in Bug 35488 (a LazyDynaBean is
wrapped by BeanValidatorForm) and has been fixed in Struts 1.2.8

Bug 35488: http://issues.apache.org/bugzilla/show_bug.cgi?id=35488
Change: http://svn.apache.org/viewcvs.cgi?rev=226537&view=rev

Can you try Struts 1.2.8 and see if it resolves the issue? Details of 1.2.8
are here:

http://www.mail-archive.com/dev%40struts.apache.org/msg13147.html

Niall

----- Original Message ----- 
From: "Alexey Abashev" <[EMAIL PROTECTED]>
Sent: Wednesday, November 16, 2005 6:50 PM


Hi everyone,

I subscribed on this mail-list for answer on my question (or maybe
this is will be a new bug request). Well, now I'll try to describe
situation:

1. I created new web-application from struts-blank (v 1.2.7).
2. Added there one form bean
        <form-bean
            name="loginForm"
            type="org.apache.struts.action.DynaActionForm">

            <form-property name="values" type="java.util.HashMap"/>
       </form-bean>

and one action
        <action
            name="loginForm"
            scope="session"
            path="/Input"
            type="org.apache.struts.actions.ForwardAction"
            parameter="/finish.jsp"/>

ok, and I want to store in _values_ property my login and password.
3. When I added two pages: one as login form
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>

<html:form action="/Input">
        Send login
       <html:text property="values(login)"/>
<html:submit/>
</html:form>

<BR>
<html:form action="/Input">
        Send password
<html:text property="values(password)"/> <BR>
<html:submit/>
</html:form>

and one as success message finish.jsp
<A href="start.jsp">back</A>

4. All works fine -- login and password are stored separately.

But now I want to use LazyDynaBean and I'm changing line
            type="org.apache.commons.beanutils.LazyDynaBean">
in the form.
And after that struts reinit form on every request. I find that this
behavior comes from FormBeanConfig class setType method -- form been
marked as not dynamic!!!  And thats why it reinitialized on every
request.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to