Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Struts 2 - Unexpected Exception

 
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
John Eric Hamacher
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solved it. forgot to enter class attribute in my configuration
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, what do you mean by adding the attribute to the configuration?
 
Willie Smits can speak 40 languages. This tiny ad can speak only one:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic