You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "zhangqiang (JIRA)" <ji...@apache.org> on 2007/07/23 16:16:06 UTC

[jira] Created: (WW-2053) the Interceptors:fileUpload,model-driven,servlet-config don't work in portlet

the Interceptors:fileUpload,model-driven,servlet-config don't   work in  portlet
--------------------------------------------------------------------------------

                 Key: WW-2053
                 URL: https://issues.apache.org/struts/browse/WW-2053
             Project: Struts 2
          Issue Type: Bug
          Components: Actions
    Affects Versions: 2.0.6
         Environment: windows xp       tomcat 5.5    jdk 1.5      liferay 4.2.2
            Reporter: zhangqiang


I   find   that   the Interceptors:fileUpload,model-driven,servlet-config don't   work  well in  portlet!
sorry my English!
They can work well in normal web application,but when  they  are used in portlet  ,something  doesn't    work!


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


[jira] Commented: (WW-2053) the Interceptors:fileUpload,model-driven,servlet-config don't work in portlet

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41630 ] 

Nils-Helge Garli commented on WW-2053:
--------------------------------------

The servlet objects are not available in a portlet environment, so the ServletConfigInterceptor is expected not to work there. Instead, work with the portlet request/context objects. We'll probably have to add a PortletConfigInterceptor. FileUpload error is a duplicate of WW-1989. Model-driven we will have to look into.

> the Interceptors:fileUpload,model-driven,servlet-config don't   work in  portlet
> --------------------------------------------------------------------------------
>
>                 Key: WW-2053
>                 URL: https://issues.apache.org/struts/browse/WW-2053
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Actions
>    Affects Versions: 2.0.6
>         Environment: windows xp       tomcat 5.5    jdk 1.5      liferay 4.2.2
>            Reporter: zhangqiang
>
> I   find   that   the Interceptors:fileUpload,model-driven,servlet-config don't   work  well in  portlet!
> sorry my English!
> They can work well in normal web application,but when  they  are used in portlet  ,something  doesn't    work!

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


[jira] Updated: (WW-2053) the Interceptors:fileUpload,model-driven,servlet-config don't work in portlet

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

Rene Gielen updated WW-2053:
----------------------------

    Fix Version/s: 2.0.10

> the Interceptors:fileUpload,model-driven,servlet-config don't   work in  portlet
> --------------------------------------------------------------------------------
>
>                 Key: WW-2053
>                 URL: https://issues.apache.org/struts/browse/WW-2053
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Actions
>    Affects Versions: 2.0.6
>         Environment: windows xp       tomcat 5.5    jdk 1.5      liferay 4.2.2
>            Reporter: ZhangQiang
>            Assignee: Rene Gielen
>             Fix For: 2.0.10, 2.1.0
>
>
> I   find   that   the Interceptors:fileUpload,model-driven,servlet-config don't   work  well in  portlet!
> sorry my English!
> They can work well in normal web application,but when  they  are used in portlet  ,something  doesn't    work!

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


[jira] Resolved: (WW-2053) the Interceptors:fileUpload,model-driven,servlet-config don't work in portlet

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nils-Helge Garli resolved WW-2053.
----------------------------------

    Resolution: Fixed

> the Interceptors:fileUpload,model-driven,servlet-config don't   work in  portlet
> --------------------------------------------------------------------------------
>
>                 Key: WW-2053
>                 URL: https://issues.apache.org/struts/browse/WW-2053
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Actions
>    Affects Versions: 2.0.6
>         Environment: windows xp       tomcat 5.5    jdk 1.5      liferay 4.2.2
>            Reporter: ZhangQiang
>            Assignee: Nils-Helge Garli
>             Fix For: 2.0.10, 2.1.0
>
>
> I   find   that   the Interceptors:fileUpload,model-driven,servlet-config don't   work  well in  portlet!
> sorry my English!
> They can work well in normal web application,but when  they  are used in portlet  ,something  doesn't    work!

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


[jira] Commented: (WW-2053) the Interceptors:fileUpload,model-driven,servlet-config don't work in portlet

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41616 ] 

James Holmes commented on WW-2053:
----------------------------------

Can you provide more specific details about what isn't working? Do you have a stack trace? What is that is not working?

> the Interceptors:fileUpload,model-driven,servlet-config don't   work in  portlet
> --------------------------------------------------------------------------------
>
>                 Key: WW-2053
>                 URL: https://issues.apache.org/struts/browse/WW-2053
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Actions
>    Affects Versions: 2.0.6
>         Environment: windows xp       tomcat 5.5    jdk 1.5      liferay 4.2.2
>            Reporter: zhangqiang
>
> I   find   that   the Interceptors:fileUpload,model-driven,servlet-config don't   work  well in  portlet!
> sorry my English!
> They can work well in normal web application,but when  they  are used in portlet  ,something  doesn't    work!

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


[jira] Reopened: (WW-2053) the Interceptors:fileUpload,model-driven,servlet-config don't work in portlet

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

Rene Gielen reopened WW-2053:
-----------------------------

      Assignee: Rene Gielen

> the Interceptors:fileUpload,model-driven,servlet-config don't   work in  portlet
> --------------------------------------------------------------------------------
>
>                 Key: WW-2053
>                 URL: https://issues.apache.org/struts/browse/WW-2053
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Actions
>    Affects Versions: 2.0.6
>         Environment: windows xp       tomcat 5.5    jdk 1.5      liferay 4.2.2
>            Reporter: ZhangQiang
>            Assignee: Rene Gielen
>             Fix For: 2.1.0
>
>
> I   find   that   the Interceptors:fileUpload,model-driven,servlet-config don't   work  well in  portlet!
> sorry my English!
> They can work well in normal web application,but when  they  are used in portlet  ,something  doesn't    work!

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


[jira] Commented: (WW-2053) the Interceptors:fileUpload,model-driven,servlet-config don't work in portlet

Posted by "zhangqiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41618 ] 

zhangqiang commented on WW-2053:
--------------------------------

ok!
For example! At  a   portlet  context ,   when i write a action   implementing ServletRequestAware  , it can't  get  HttpServletRequest  object by using  the method  that  struts2 doc  show!   There  is  no  exception thrown  out! 
And  when  i  use   fileUpload  Interceptors  ,i  can't  get  any information  about   the  file   uploaded!
if  i  test  above  status  in normal  web  application, they  all  work   well !
so  confused!
 it sames   that   the portlet context   is not  consistent with the servlet context  in struts2!
oh! so terrible my  English is!!!

thanks !:)

> the Interceptors:fileUpload,model-driven,servlet-config don't   work in  portlet
> --------------------------------------------------------------------------------
>
>                 Key: WW-2053
>                 URL: https://issues.apache.org/struts/browse/WW-2053
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Actions
>    Affects Versions: 2.0.6
>         Environment: windows xp       tomcat 5.5    jdk 1.5      liferay 4.2.2
>            Reporter: zhangqiang
>
> I   find   that   the Interceptors:fileUpload,model-driven,servlet-config don't   work  well in  portlet!
> sorry my English!
> They can work well in normal web application,but when  they  are used in portlet  ,something  doesn't    work!

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


[jira] Commented: (WW-2053) the Interceptors:fileUpload,model-driven,servlet-config don't work in portlet

Posted by "zhangqiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41650 ] 

zhangqiang commented on WW-2053:
--------------------------------

Thank you  for  advice! 
I have used the portlet request   to get  a uploaded file   instead of   using fileUpload Interceptor .
And   i  would show some details about  how the  Model-driven Interceptor not   work   in   portlet environment:

When  i  submit some date  to  the   action  from a form in  portlet  environment , i   can   get   the  date  from  the  model  object   in  action  method.  Then  the  action  method returns  the  result   , and  forwarding to  a  jsp  page .The  question is  that  I  can't   get   the  date   again  from  the  model  object  by  tag such  as:<s:property value="userName" />!
But  when  i  test  above programme in  normal web application (using  normal struts2  url to  access  web application  ,not  in  a  portlet  environment  ),erveryThing  is go on!
It sames that  the backGround's  action /render  method of  portlet  influences the data of  model object that  i  get  in that  jsp  page!

Thanks!  


> the Interceptors:fileUpload,model-driven,servlet-config don't   work in  portlet
> --------------------------------------------------------------------------------
>
>                 Key: WW-2053
>                 URL: https://issues.apache.org/struts/browse/WW-2053
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Actions
>    Affects Versions: 2.0.6
>         Environment: windows xp       tomcat 5.5    jdk 1.5      liferay 4.2.2
>            Reporter: zhangqiang
>
> I   find   that   the Interceptors:fileUpload,model-driven,servlet-config don't   work  well in  portlet!
> sorry my English!
> They can work well in normal web application,but when  they  are used in portlet  ,something  doesn't    work!

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


[jira] Resolved: (WW-2053) the Interceptors:fileUpload,model-driven,servlet-config don't work in portlet

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nils-Helge Garli resolved WW-2053.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.0

> the Interceptors:fileUpload,model-driven,servlet-config don't   work in  portlet
> --------------------------------------------------------------------------------
>
>                 Key: WW-2053
>                 URL: https://issues.apache.org/struts/browse/WW-2053
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Actions
>    Affects Versions: 2.0.6
>         Environment: windows xp       tomcat 5.5    jdk 1.5      liferay 4.2.2
>            Reporter: ZhangQiang
>             Fix For: 2.1.0
>
>
> I   find   that   the Interceptors:fileUpload,model-driven,servlet-config don't   work  well in  portlet!
> sorry my English!
> They can work well in normal web application,but when  they  are used in portlet  ,something  doesn't    work!

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


[jira] Assigned: (WW-2053) the Interceptors:fileUpload,model-driven,servlet-config don't work in portlet

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

Rene Gielen reassigned WW-2053:
-------------------------------

    Assignee: Nils-Helge Garli  (was: Rene Gielen)

Backport to 2.0.10 checked in.

Nils, please review.

> the Interceptors:fileUpload,model-driven,servlet-config don't   work in  portlet
> --------------------------------------------------------------------------------
>
>                 Key: WW-2053
>                 URL: https://issues.apache.org/struts/browse/WW-2053
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Actions
>    Affects Versions: 2.0.6
>         Environment: windows xp       tomcat 5.5    jdk 1.5      liferay 4.2.2
>            Reporter: ZhangQiang
>            Assignee: Nils-Helge Garli
>             Fix For: 2.0.10, 2.1.0
>
>
> I   find   that   the Interceptors:fileUpload,model-driven,servlet-config don't   work  well in  portlet!
> sorry my English!
> They can work well in normal web application,but when  they  are used in portlet  ,something  doesn't    work!

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