[ 
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.

Reply via email to