You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Wendy Smoak (JIRA)" <ji...@apache.org> on 2006/05/07 09:29:52 UTC

[jira] Resolved: (STR-2793) Postback form (optional 'action' attribute for html-el:form) is not working

     [ http://issues.apache.org/struts/browse/STR-2793?page=all ]
     
Wendy Smoak resolved STR-2793:
------------------------------

    Fix Version: 1.3.3
     Resolution: Fixed

The 'action' attribute of <html-el:form> is now optional.
http://svn.apache.org/viewcvs?rev=404737&view=rev

After fixing the TLD, I'm unable to reproduce the NullPointerException.  

In an example app, this JSP

   <html:form>

correctly renders this HTML:

   <form name="inputForm" method="post" action="/mywebapp/Input.do">

Closing as fixed.

> Postback form (optional 'action' attribute for html-el:form) is not working
> ---------------------------------------------------------------------------
>
>          Key: STR-2793
>          URL: http://issues.apache.org/struts/browse/STR-2793
>      Project: Struts Action 1
>         Type: Bug

>   Components: EL
>     Versions: 1.3.0
>  Environment: Operating System: other
> Platform: Other
>     Reporter: Wendy Smoak
>      Fix For: 1.3.3

>
> The release notes for 1.3 mention 'Postback forms' and say that the 'action'
> attribute of the form tag is now optional.  This hasn't been changed in the tld
> for the html-el taglib.  Making that change resulted in the following NPE.  Was
> this feature implemented in the Struts EL taglib?
> 14:20:18,187 - ERROR
> org.apache.catalina.core.ContainerBase.[Catalina].[example.com].[/myapp].[action]
> - Servlet.service() for servlet action threw exception
> java.lang.NullPointerException
> 	at org.apache.struts.taglib.TagUtils.getActionMappingName(TagUtils.java:560)
> 	at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:755)
> 	at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:410)
> 	at org.apache.strutsel.taglib.html.ELFormTag.doStartTag(ELFormTag.java:396)
> 	at
> org.apache.jsp.WEB_002dINF.jsp.chooseAgresrelBody_jsp._jspx_meth_html_form_0(org.apache.jsp.WEB_002dINF.jsp.chooseAgresrelBody_jsp:132)
> 	at
> org.apache.jsp.WEB_002dINF.jsp.chooseAgresrelBody_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.chooseAgresrelBody_jsp:90)
> 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira