DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7254>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7254

Wrong form bean used for included form code

           Summary: Wrong form bean used for included form code
           Product: Struts
           Version: 1.0.2 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Custom Tags
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In foo.jsp there is a line like this: <%@ include file="some.inc"%>.

File some.inc contains just this:
<html:form action="relay">
        <html:hidden property="forward" value=""/>
</html:form>

Immediately after the include line in foo.jsp there is code like this:
<html:form action="someaction">
...

When compiled foo.jsp gives html code with two forms with the same name: the 
name of the second form's form bean, as set in struts-config.xml.

If instead of <html:form action="someaction"> I use <html:form 
action="someaction" styleId="somestyleid"> or <html:form action="someaction" 
onsubmit="return somefunction(this)">, everything is OK, that is the two forms 
take their respective form bean names.

I think there is some problem in general in this configuration when the second 
form has only the action parameter set.

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

Reply via email to