struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lovepreeet (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4467) disableRequestAttributeValueStackLookup is not working for MultiPartRequestWrapper
Date Fri, 20 Feb 2015 17:55:12 GMT

    [ https://issues.apache.org/jira/browse/WW-4467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14329264#comment-14329264
] 

Lovepreeet commented on WW-4467:
--------------------------------

Sir Actually i am changing the framework from struts1.3 to struts2.0
In struts1.3 i am using request.getAttribute and cast the result to string which is working
fine.
but in struts2.0 when i am doing the same it is giving classCastException
after studying code of struts2.0 i came to know that StrutsRequestWrapper and MultiPartRequestWrapper
looks value in valuestack when request.getAttribute is null and give array of object as a
result if it finds the value which leads classCastException. 
And some others constants saved in value stack gives unexpected results like action, which
gives fully Qualified name of action in struts2.0.

> disableRequestAttributeValueStackLookup is not working for MultiPartRequestWrapper
> ----------------------------------------------------------------------------------
>
>                 Key: WW-4467
>                 URL: https://issues.apache.org/jira/browse/WW-4467
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.3.16.3
>            Reporter: Lovepreeet
>            Priority: Minor
>             Fix For: 2.3.22
>
>
> I m using disableRequestAttributeValueStackLookup to disable request to extract attributes
from value stack because it leads to class cast exception.
> But i noticed in source code of struts2-core 2.3.16.3 that in case of MultPart request
the value of disableRequestAttributeValueStackLookup constant is set to false by default.
> I need to know is there any other way to solve this problem or it is a bug in struts2



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message