You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Amit Panwar (JIRA)" <ji...@apache.org> on 2007/05/17 09:21:42 UTC

[jira] Created: (STR-3041) TILES Affecting the struts core running

TILES Affecting the struts core running
---------------------------------------

                 Key: STR-3041
                 URL: https://issues.apache.org/struts/browse/STR-3041
             Project: Struts 1
          Issue Type: Bug
          Components: Tiles
    Affects Versions: 1.3.8
         Environment: Struts 1.3.8
            Reporter: Amit Panwar


Hi 

             i m using tile to render a page. this page will be rendered by combining three jsp pages header,menu,body .
> When the page loads first time it is working properly , at first it is calling the reset method of bean and the getters of all properties. But when i submit the page then it must call the "execute" method of action class first ,  but it is calling reset and then it is calling the "execute" method and i m forwording  the page to its own defination , when it redirects the page it is not calling the reset method of form bean.
> All three pages header,menu and body have Action and i m facing the problem in body page when i m submitting the body action.
> please reply.
> Amit Panwar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (STR-3041) TILES Affecting the struts core running

Posted by "Paul Benedict (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/STR-3041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41005 ] 

Paul Benedict commented on STR-3041:
------------------------------------

Does the action you redirect to include a "name" attribute?

> TILES Affecting the struts core running
> ---------------------------------------
>
>                 Key: STR-3041
>                 URL: https://issues.apache.org/struts/browse/STR-3041
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Tiles
>    Affects Versions: 1.3.8
>         Environment: Struts 1.3.8
>            Reporter: Amit Panwar
>
> Hi 
>              i m using tile to render a page. this page will be rendered by combining three jsp pages header,menu,body .
> > When the page loads first time it is working properly , at first it is calling the reset method of bean and the getters of all properties. But when i submit the page then it must call the "execute" method of action class first ,  but it is calling reset and then it is calling the "execute" method and i m forwording  the page to its own defination , when it redirects the page it is not calling the reset method of form bean.
> > All three pages header,menu and body have Action and i m facing the problem in body page when i m submitting the body action.
> > please reply.
> > Amit Panwar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (STR-3041) TILES Affecting the struts core running

Posted by "Amit Panwar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/STR-3041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41007 ] 

Amit Panwar commented on STR-3041:
----------------------------------

this is the Action which is forwarding to next page "ChangePassword" and
changePasssword is a definition in "tiles-defs.xml".
It is properly forwarding to next page.  But  the  " ChangePassword "
forwarding to itself and here is the problem.

The form bean is in request scope but it is not calling the reset method of
form bean when the page forward to  itself  and the page reloads.
when  "/AdminPageAction"  fowards to "ChangePassword" the first of all its
reset method called and then all getters , it is working good when it loads
first time.
but when the "/ChangePasswordAction" forward  to itself then according to
struts behavior it must call the setter of form bean and then "execute"
method of action class first but it is calling RESET method first and then
setters and execute and when the page reloads it is only calling the getters
of form bean.(NOT CALLING  RESET ). One more thing is that form bean is in
request scope and it not creating new instance of form bean when the page
reloads("forward to itself").

By removing tiles it is working properly.


"This is the Action which forwards to  "ChangePassword"  ".
<action
            path="/AdminPageAction"
            type="com.imfinity.common.AdminPageAction"
            name="AdminPageForm"
            scope="request"
            parameter = "dispatch"
            validate="true"
            input="/pages/AdminPage.jsp">


            <forward name="ChangePassword"   path = "ChangePassword"
redirect="true"></forward>
        </action>



"this is change password Action mapping "

<action
            path="/ChangePasswordAction"
            type="com.imfinity.admin.ChangePasswordAction"
            name="ChangePasswordForm"
            scope="request"
            input="/pages/adminpages/ChangePassword.jsp">

        <forward name="ChangePassword" path="ChangePassword"
redirect="true"></forward>

</action>

"Tiles  Definition  of ChangePassword "

<definition name="ChangePassword" extends="AdminPage">
        <put name="title"   type="string"   value="Change Password"></put>
        <put name="body"
value="/pages/adminpages/ChangePassword.jsp"></put>
    </definition>



So please show me way.

Regards
Amit Panwar


> TILES Affecting the struts core running
> ---------------------------------------
>
>                 Key: STR-3041
>                 URL: https://issues.apache.org/struts/browse/STR-3041
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Tiles
>    Affects Versions: 1.3.8
>         Environment: Struts 1.3.8
>            Reporter: Amit Panwar
>
> Hi 
>              i m using tile to render a page. this page will be rendered by combining three jsp pages header,menu,body .
> > When the page loads first time it is working properly , at first it is calling the reset method of bean and the getters of all properties. But when i submit the page then it must call the "execute" method of action class first ,  but it is calling reset and then it is calling the "execute" method and i m forwording  the page to its own defination , when it redirects the page it is not calling the reset method of form bean.
> > All three pages header,menu and body have Action and i m facing the problem in body page when i m submitting the body action.
> > please reply.
> > Amit Panwar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (STR-3041) TILES Affecting the struts core running

Posted by "Paul Benedict (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/STR-3041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Benedict closed STR-3041.
------------------------------

    Resolution: Incomplete

Issue is not detailed enough. Despite that, Tiles does not impact the reset() method.

> TILES Affecting the struts core running
> ---------------------------------------
>
>                 Key: STR-3041
>                 URL: https://issues.apache.org/struts/browse/STR-3041
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Tiles 1 Plugin
>    Affects Versions: 1.3.8
>         Environment: Struts 1.3.8
>            Reporter: Amit Panwar
>
> Hi 
>              i m using tile to render a page. this page will be rendered by combining three jsp pages header,menu,body .
> > When the page loads first time it is working properly , at first it is calling the reset method of bean and the getters of all properties. But when i submit the page then it must call the "execute" method of action class first ,  but it is calling reset and then it is calling the "execute" method and i m forwording  the page to its own defination , when it redirects the page it is not calling the reset method of form bean.
> > All three pages header,menu and body have Action and i m facing the problem in body page when i m submitting the body action.
> > please reply.
> > Amit Panwar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.