You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/09/30 15:47:09 UTC

DO NOT REPLY [Bug 13136] New: - Only one form allowed per page

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=13136>.
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=13136

Only one form allowed per page

           Summary: Only one form allowed per page
           Product: Struts
           Version: 1.0.2 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Standard Actions
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: bugzilla_struts@yahoo.com


When using the following code in a jsp page:

<html:form action="/search1" >
  Search 1 :  <html:text property="search1Text" size="20"/> <html:submit 
value="Search"/>
</html:form>

<html:form action="/search2" >
  Search 2 :  <html:text property="search2Text" size="20"/> <html:submit 
value="Search"/> 
</html:form>

The following exception is thrown:

javax.servlet.jsp.JspException: No getter method for property search2Text
of bean org.apache.struts.taglib.html.BEAN
	at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:517)
...
...


Everything needed is in the struts-config.xml file and I have a getSerch2Text() 
method in my bean. When I remove the first form, everything works fine, and 
when I remove the second form and keep the first form, everything works fine as 
well. This only happens when 2 or more forms are used in one page.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>