struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "COMBEAU (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (WW-4684) No set parameter value to action
Date Fri, 02 Sep 2016 12:49:20 GMT

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

COMBEAU edited comment on WW-4684 at 9/2/16 12:49 PM:
------------------------------------------------------

I think the issue is due to the stack because in Struts 2.3.28 I have this one :
<interceptor-stack name="defaultStack">
				<interceptor-ref name="session"/>
				<interceptor-ref name="exception">
					<param name="logEnabled">true</param>
					<param name="logCategory">com.myapp.unhandled</param>
					<param name="logLevel">ERROR</param>
				</interceptor-ref>
				<interceptor-ref name="alias" />
				<interceptor-ref name="servletConfig" />
				<interceptor-ref name="i18n" />
				<interceptor-ref name="prepare">
					<param name="excludeMethods">submit,login,logout</param>
				</interceptor-ref>
				<interceptor-ref name="chain" />
				<interceptor-ref name="scopedModelDriven" />
				<interceptor-ref name="modelDriven" />
				<interceptor-ref name="checkbox" />
				<interceptor-ref name="staticParams" />
				<interceptor-ref name="actionMappingParams" />
				<interceptor-ref name="params"/>
				<interceptor-ref name="conversionError" />
				<interceptor-ref name="validation">
					<param name="validateAnnotatedMethodOnly">true</param>
					<param name="excludeMethods">input,back,cancel,browse,build</param>
				</interceptor-ref>
				<interceptor-ref name="workflow">
					<!--
						we exclude build so that we can chain to build without failing if
						original validation failed
					-->
					<param name="excludeMethods">input,back,cancel,browse,build</param>
				</interceptor-ref>
				<interceptor-ref name="json">
					<param name="contentType">application/json</param>
        		</interceptor-ref>
			</interceptor-stack>

And all is OK

And know I have replaced <param name="contentType">application/json</param> by
<param name="accept">application/json</param> and all fails all pages of my Webapp

it's because I have only one stack for all my request and the accept cause some trouble


was (Author: walkn):
I think the issue is due to the stack because in Struts 2.3.28 I have this one :
<interceptor-stack name="defaultStack">
				<interceptor-ref name="session"/>
				<interceptor-ref name="exception">
					<param name="logEnabled">true</param>
					<param name="logCategory">com.myapp.unhandled</param>
					<param name="logLevel">ERROR</param>
				</interceptor-ref>
				<interceptor-ref name="alias" />
				<interceptor-ref name="servletConfig" />
				<interceptor-ref name="i18n" />
				<interceptor-ref name="prepare">
					<param name="excludeMethods">submit,login,logout</param>
				</interceptor-ref>
				<interceptor-ref name="chain" />
				<interceptor-ref name="scopedModelDriven" />
				<interceptor-ref name="modelDriven" />
				<interceptor-ref name="checkbox" />
				<interceptor-ref name="staticParams" />
				<interceptor-ref name="actionMappingParams" />
				<interceptor-ref name="params"/>
				<interceptor-ref name="conversionError" />
				<interceptor-ref name="validation">
					<param name="validateAnnotatedMethodOnly">true</param>
					<param name="excludeMethods">input,back,cancel,browse,build</param>
				</interceptor-ref>
				<interceptor-ref name="workflow">
					<!--
						we exclude build so that we can chain to build without failing if
						original validation failed
					-->
					<param name="excludeMethods">input,back,cancel,browse,build</param>
				</interceptor-ref>
				<interceptor-ref name="json">
					<param name="contentType">application/json</param>
        		</interceptor-ref>
			</interceptor-stack>

And all is OK

And know I have replaced <param name="contentType">application/json</param> by
<param name="accept">application/json</param> and all fails all pages of my Webapp

> No set parameter value to action
> --------------------------------
>
>                 Key: WW-4684
>                 URL: https://issues.apache.org/jira/browse/WW-4684
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.5.2
>         Environment: Windows
>            Reporter: COMBEAU
>             Fix For: 2.5.3
>
>         Attachments: ActionSample.java, login.jsp, screenshot-1.png, struts.properties,
struts.xml
>
>
> I have an issue on my webapp since I have update Struts 2 to version 2.5.2 from 2.3.28.
> When I post a form with parameters via ajax call, on the action class setters are not
called. All the time the setter and getter return "null" value
> I used Struts2-core and struts2-json-plugin



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

Mime
View raw message