Changed everything to param1.  Still the same error.

 

 

 

> What am I missing?

 

Name of the parameter, change it to param1 and getter/setter

 

 

________________________________

From: Eric Hamacher 
Sent: Thursday, June 26, 2008 8:42 AM
To: 'user@struts.apache.org'
Subject: Struts 2 - Unexpected Exception

 

Hello again:

I have the following Action:


public class PrepAction extends ActionSupport {

String param_1 = null;

public String execute() {
System.err.println("In prep execute");
return SUCCESS;
}


public void setParam_1(String param_1) {
this.param_1 = param_1;
}

public String getParam_1() {
return param_1;
}
}

Yet when I call /ImageManager/upload/PrepAction.action?param_1=123, I
get the following message:

SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
caught setting 'param_1' on 'class
com.opensymphony.xwork2.ActionSupport: Error setting expression
'param_1' with value '[Ljava.lang.String;@1116f9'

What am I missing?

Thanks.
eric

 

Regards,

Eric Hamacher

 

******************************

THIS EMAIL IS INTENDED ONLY FOR THE REVIEW OF THE ADDRESSEE(S), AND MAY
CONTAIN CONFIDENTIAL AND LEGALLY PRIVILEGED INFORMATION. INTERCEPTION,
COPYING, DISSEMINATION, OR OTHER USE BY OTHER THAN THE ADDRESSEE(S) IS
PROHIBITED AND MAY BE PENALIZED UNDER APPLICABLE PRIVACY LAWS. IF YOU
RECEIVED THIS EMAIL IN ERROR, PLEASE DELETE IT AND NOTIFY ME BY RETURN
EMAIL TO [EMAIL PROTECTED] *******************************

 

Reply via email to