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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to