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 2003/07/17 17:38:33 UTC

DO NOT REPLY [Bug 21690] New: - html:form tag fails if target form does not have associated bean

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

html:form tag fails if target form does not have associated bean

           Summary: html:form tag fails if target form does not have
                    associated bean
           Product: Struts
           Version: 1.1 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: arnaud.louet@db.com


If the struts confic contains an entry like this one:

    <action
    	path="/myAction"
    	type="org.apache.struts.actions.ForwardAction"
		parameter="somepage.jsp"/>



accessing this action from anoter JSP like this

<html:form action="/myAction" >
   <html:submit value="add" />
</html:form>

throws an exception:
javax.servlet.jsp.JspException: Cannot retrieve definition for form bean null
        at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:831)
        at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)


the tag looks for a (non-existent) bean associated with the action mapping...

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org