[ http://mc4j.org/jira/browse/STS-430?page=comments#action_10857 ] 
            
Alexander V. Zinin commented on STS-430:
----------------------------------------

Simple way to fix this bug is:

FormTag.java
    protected ActionBean getActionBean() {
        ActionBean ret = (ActionBean) 
getPageContext().getRequest().getAttribute(this.actionWithoutContext);
        if (ret == null) ret = (ActionBean) 
getPageContext().getRequest().getAttribute(StripesConstants.REQ_ATTR_ACTION_BEAN);

        return ret;
    }

> If form action not equals url binding, action bean can't find bean in request 
> for repopulate and errors
> -------------------------------------------------------------------------------------------------------
>
>                 Key: STS-430
>                 URL: http://mc4j.org/jira/browse/STS-430
>             Project: Stripes
>          Issue Type: Bug
>          Components: ActionBean Dispatching
>    Affects Versions: Release 1.4.3
>            Reporter: Alexander V. Zinin
>         Assigned To: Tim Fennell
>
> I have ActionBean binded to "/user/register" default handler forward to 
> register.jsp.
> register.jsp has form <stripes:form action="/user/register/" method="post">.
> When I click submit and action bean validation failed and forward to 
> register.jsp, all tags like <stripes:text/hidden/errors etc can't find values 
> for repopulate in request and jsp has empty fields and no errors.

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

        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to