1

com.opensymphony.xwork2.interceptor.ParametersInterceptor error SEVERE: Developer Notification (set struts.devMode to false to disable this message):
Unexpected Exception caught setting 'Screen_name' on 'class org.ScreenCreation: Error setting expression 'Screen_name' with value ['kjn', ]

I'm new with struts2 and I have this error, can any one help me to solve it ?

Andrea Ligios
  • 49,480
  • 26
  • 114
  • 243
yamany
  • 23
  • 6

1 Answers1

1

Unexpected Exception caught setting 'Screen_name' on 'class org.ScreenCreation: Error setting expression 'Screen_name' with value ['kjn', ]

That error means you are missing the Setter for your attribute in the Action.

if the attribute is Screen_name, the setter should be

public void setScreen_name(){}

but that's a really wrong syntax for a variable, try avoiding underscores and especially capitalized first letter by usign camelCase, eg screenName:

private String screeName;

public void setScreenName(){...}
Andrea Ligios
  • 49,480
  • 26
  • 114
  • 243