Re: Error setting expression with Value

2014-06-16 Thread NIJO GEORGE
);
}
} else {
addActionError(Failed to Update Question);
}
addActionMessage(Question Updated Successfully);
return SUCCESS;
}

@Override
public void setServletRequest(HttpServletRequest hsr) {
this.request = hsr;
}
}



On Sun, Jun 15, 2014 at 2:05 PM, Lukasz Lenart lukaszlen...@apache.org
wrote:

 Can you show your action? Looks like a issue with setters

 2014-06-14 14:57 GMT+02:00 NIJO GEORGE nijo...@gmail.com:
   s:hidden value=%{#qa.questionid} name=mQuestionid id=qid /
   s:hidden value=%{#qa.answerid} name=mAnswerid id=aid /
 
  17:58:54,084 ERROR
  [com.opensymphony.xwork2.interceptor.ParametersInterceptor]
  (http--127.0.0.1-8080-6) Developer Notification (set struts.devMode to
 false
  to disable this message):
  Unexpected Exception caught setting 'mAnswerid' on 'class
  com.dieutek.examsoft.question.CreateQuestionAction: Error setting
 expression
  'mAnswerid' with value ['26', ]
 
  17:58:54,085 ERROR
  [com.opensymphony.xwork2.interceptor.ParametersInterceptor]
  (http--127.0.0.1-8080-6) Developer Notification (set struts.devMode to
 false
  to disable this message):
  Unexpected Exception caught setting 'mQuestionid' on 'class
  com.dieutek.examsoft.question.CreateQuestionAction: Error setting
 expression
  'mQuestionid' with value ['3402', ]
 
 
  I'm Getting the above error while getting value from two Hidden Fields
 into
  a form Action. I have also tried these two fields with textfield too. But
  Getting the same error.
  I'm not using any Model driven Interface in my action. How i should
 proceed
  with this?
 
 

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




-- 
NIJO GEORGE P
Follow me on Twitter http://www.twitter.com/nijogeorgep
Add me as Friend http://www.facebook.com/nijogeorgep
View my Profile on LinkedIn http://in.linkedin.com/in/nijogeorgep
+918089699703


Re: Error setting expression with Value

2014-06-16 Thread Sreekanth S. Nair
(getShowAsMCQ());
 if (qi.editQuestion(eqn)) {
 eas.setAnswerid(getmAnswerid());//(getmAnswerid());
 eas.setAnswer(getCorrectAnswer());
 eas.setOptionA(getOptionA());
 eas.setOptionB(getOptionB());
 eas.setOptionC(getOptionC());
 eas.setOptionD(getOptionD());
 eas.setOptionE(getOptionE());
 eas.setOptionF(getOptionF());
 eas.setOptionG(getOptionG());
 if (ai.editAnswer(eas) != true) {
 addActionError(Failed to Update Answer);
 }
 } else {
 addActionError(Failed to Update Question);
 }
 addActionMessage(Question Updated Successfully);
 return SUCCESS;
 }

 @Override
 public void setServletRequest(HttpServletRequest hsr) {
 this.request = hsr;
 }
 }



 On Sun, Jun 15, 2014 at 2:05 PM, Lukasz Lenart lukaszlen...@apache.org
 wrote:

  Can you show your action? Looks like a issue with setters
 
  2014-06-14 14:57 GMT+02:00 NIJO GEORGE nijo...@gmail.com:
s:hidden value=%{#qa.questionid} name=mQuestionid id=qid /
s:hidden value=%{#qa.answerid} name=mAnswerid id=aid /
  
   17:58:54,084 ERROR
   [com.opensymphony.xwork2.interceptor.ParametersInterceptor]
   (http--127.0.0.1-8080-6) Developer Notification (set struts.devMode to
  false
   to disable this message):
   Unexpected Exception caught setting 'mAnswerid' on 'class
   com.dieutek.examsoft.question.CreateQuestionAction: Error setting
  expression
   'mAnswerid' with value ['26', ]
  
   17:58:54,085 ERROR
   [com.opensymphony.xwork2.interceptor.ParametersInterceptor]
   (http--127.0.0.1-8080-6) Developer Notification (set struts.devMode to
  false
   to disable this message):
   Unexpected Exception caught setting 'mQuestionid' on 'class
   com.dieutek.examsoft.question.CreateQuestionAction: Error setting
  expression
   'mQuestionid' with value ['3402', ]
  
  
   I'm Getting the above error while getting value from two Hidden Fields
  into
   a form Action. I have also tried these two fields with textfield too.
 But
   Getting the same error.
   I'm not using any Model driven Interface in my action. How i should
  proceed
   with this?
  
  
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 


 --
 NIJO GEORGE P
 Follow me on Twitter http://www.twitter.com/nijogeorgep
 Add me as Friend http://www.facebook.com/nijogeorgep
 View my Profile on LinkedIn http://in.linkedin.com/in/nijogeorgep
 +918089699703



Re: Error setting expression with Value

2014-06-16 Thread Lukasz Lenart
());
 eqn.setQuestion(getQuestion());
 eqn.setCourseid(getCourseid());

 eqn.setSubjectid(getSubjectid());//eq.setSubjectid(getSubjectids());
 eqn.setAdminid(adminid);
 eqn.setOccurance(0);
 eqn.setQuestionhint(getHint());
 eqn.setShowasMcq(getShowAsMCQ());
 if (qi.editQuestion(eqn)) {
 eas.setAnswerid(getmAnswerid());//(getmAnswerid());
 eas.setAnswer(getCorrectAnswer());
 eas.setOptionA(getOptionA());
 eas.setOptionB(getOptionB());
 eas.setOptionC(getOptionC());
 eas.setOptionD(getOptionD());
 eas.setOptionE(getOptionE());
 eas.setOptionF(getOptionF());
 eas.setOptionG(getOptionG());
 if (ai.editAnswer(eas) != true) {
 addActionError(Failed to Update Answer);
 }
 } else {
 addActionError(Failed to Update Question);
 }
 addActionMessage(Question Updated Successfully);
 return SUCCESS;
 }

 @Override
 public void setServletRequest(HttpServletRequest hsr) {
 this.request = hsr;
 }
 }



 On Sun, Jun 15, 2014 at 2:05 PM, Lukasz Lenart lukaszlen...@apache.org
 wrote:

  Can you show your action? Looks like a issue with setters
 
  2014-06-14 14:57 GMT+02:00 NIJO GEORGE nijo...@gmail.com:
s:hidden value=%{#qa.questionid} name=mQuestionid id=qid /
s:hidden value=%{#qa.answerid} name=mAnswerid id=aid /
  
   17:58:54,084 ERROR
   [com.opensymphony.xwork2.interceptor.ParametersInterceptor]
   (http--127.0.0.1-8080-6) Developer Notification (set struts.devMode to
  false
   to disable this message):
   Unexpected Exception caught setting 'mAnswerid' on 'class
   com.dieutek.examsoft.question.CreateQuestionAction: Error setting
  expression
   'mAnswerid' with value ['26', ]
  
   17:58:54,085 ERROR
   [com.opensymphony.xwork2.interceptor.ParametersInterceptor]
   (http--127.0.0.1-8080-6) Developer Notification (set struts.devMode to
  false
   to disable this message):
   Unexpected Exception caught setting 'mQuestionid' on 'class
   com.dieutek.examsoft.question.CreateQuestionAction: Error setting
  expression
   'mQuestionid' with value ['3402', ]
  
  
   I'm Getting the above error while getting value from two Hidden Fields
  into
   a form Action. I have also tried these two fields with textfield too.
 But
   Getting the same error.
   I'm not using any Model driven Interface in my action. How i should
  proceed
   with this?
  
  
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 


 --
 NIJO GEORGE P
 Follow me on Twitter http://www.twitter.com/nijogeorgep
 Add me as Friend http://www.facebook.com/nijogeorgep
 View my Profile on LinkedIn http://in.linkedin.com/in/nijogeorgep
 +918089699703


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Error setting expression with Value

2014-06-16 Thread NIJO GEORGE
;
  }
 
  public UpdateQuestionAction() {
  }
 
  public String updateQuestion() {
  QuestionImplementor qi = new QuestionImplementor();
  AnswerImplementor ai = new AnswerImplementor();
  System.out.println(Answer Id :  + getmAnswerid());
  System.out.println(Question Id :  + getmQuestionid());
  adminid = ((Integer)
  request.getSession().getAttribute(adminid)).intValue();
  ExmQuestion eqn = new ExmQuestion();
  ExmAnswers eas = new ExmAnswers();
  eqn.setQuestionid(getmQuestionid());//(getmQuestionid());
  eqn.setQuestion(getQuestion());
  eqn.setCourseid(getCourseid());
 
  eqn.setSubjectid(getSubjectid());//eq.setSubjectid(getSubjectids());
  eqn.setAdminid(adminid);
  eqn.setOccurance(0);
  eqn.setQuestionhint(getHint());
  eqn.setShowasMcq(getShowAsMCQ());
  if (qi.editQuestion(eqn)) {
  eas.setAnswerid(getmAnswerid());//(getmAnswerid());
  eas.setAnswer(getCorrectAnswer());
  eas.setOptionA(getOptionA());
  eas.setOptionB(getOptionB());
  eas.setOptionC(getOptionC());
  eas.setOptionD(getOptionD());
  eas.setOptionE(getOptionE());
  eas.setOptionF(getOptionF());
  eas.setOptionG(getOptionG());
  if (ai.editAnswer(eas) != true) {
  addActionError(Failed to Update Answer);
  }
  } else {
  addActionError(Failed to Update Question);
  }
  addActionMessage(Question Updated Successfully);
  return SUCCESS;
  }
 
  @Override
  public void setServletRequest(HttpServletRequest hsr) {
  this.request = hsr;
  }
  }
 
 
 
  On Sun, Jun 15, 2014 at 2:05 PM, Lukasz Lenart lukaszlen...@apache.org
 
  wrote:
 
   Can you show your action? Looks like a issue with setters
  
   2014-06-14 14:57 GMT+02:00 NIJO GEORGE nijo...@gmail.com:
 s:hidden value=%{#qa.questionid} name=mQuestionid id=qid /
 s:hidden value=%{#qa.answerid} name=mAnswerid id=aid /
   
17:58:54,084 ERROR
[com.opensymphony.xwork2.interceptor.ParametersInterceptor]
(http--127.0.0.1-8080-6) Developer Notification (set struts.devMode
 to
   false
to disable this message):
Unexpected Exception caught setting 'mAnswerid' on 'class
com.dieutek.examsoft.question.CreateQuestionAction: Error setting
   expression
'mAnswerid' with value ['26', ]
   
17:58:54,085 ERROR
[com.opensymphony.xwork2.interceptor.ParametersInterceptor]
(http--127.0.0.1-8080-6) Developer Notification (set struts.devMode
 to
   false
to disable this message):
Unexpected Exception caught setting 'mQuestionid' on 'class
com.dieutek.examsoft.question.CreateQuestionAction: Error setting
   expression
'mQuestionid' with value ['3402', ]
   
   
I'm Getting the above error while getting value from two Hidden
 Fields
   into
a form Action. I have also tried these two fields with textfield
 too.
  But
Getting the same error.
I'm not using any Model driven Interface in my action. How i should
   proceed
with this?
   
   
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  
 
 
  --
  NIJO GEORGE P
  Follow me on Twitter http://www.twitter.com/nijogeorgep
  Add me as Friend http://www.facebook.com/nijogeorgep
  View my Profile on LinkedIn http://in.linkedin.com/in/nijogeorgep
  +918089699703
 

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




-- 
NIJO GEORGE P
Follow me on Twitter http://www.twitter.com/nijogeorgep
Add me as Friend http://www.facebook.com/nijogeorgep
View my Profile on LinkedIn http://in.linkedin.com/in/nijogeorgep
+918089699703


Re: Error setting expression with Value

2014-06-15 Thread Lukasz Lenart
Can you show your action? Looks like a issue with setters

2014-06-14 14:57 GMT+02:00 NIJO GEORGE nijo...@gmail.com:
  s:hidden value=%{#qa.questionid} name=mQuestionid id=qid /
  s:hidden value=%{#qa.answerid} name=mAnswerid id=aid /

 17:58:54,084 ERROR
 [com.opensymphony.xwork2.interceptor.ParametersInterceptor]
 (http--127.0.0.1-8080-6) Developer Notification (set struts.devMode to false
 to disable this message):
 Unexpected Exception caught setting 'mAnswerid' on 'class
 com.dieutek.examsoft.question.CreateQuestionAction: Error setting expression
 'mAnswerid' with value ['26', ]

 17:58:54,085 ERROR
 [com.opensymphony.xwork2.interceptor.ParametersInterceptor]
 (http--127.0.0.1-8080-6) Developer Notification (set struts.devMode to false
 to disable this message):
 Unexpected Exception caught setting 'mQuestionid' on 'class
 com.dieutek.examsoft.question.CreateQuestionAction: Error setting expression
 'mQuestionid' with value ['3402', ]


 I'm Getting the above error while getting value from two Hidden Fields into
 a form Action. I have also tried these two fields with textfield too. But
 Getting the same error.
 I'm not using any Model driven Interface in my action. How i should proceed
 with this?



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Error setting expression with Value

2014-06-14 Thread NIJO GEORGE
 s:hidden value=%{#qa.questionid} name=mQuestionid id=qid /
 s:hidden value=%{#qa.answerid} name=mAnswerid id=aid /

17:58:54,084 ERROR
[com.opensymphony.xwork2.interceptor.ParametersInterceptor]
(http--127.0.0.1-8080-6) Developer Notification (set struts.devMode to
false to disable this message):
Unexpected Exception caught setting 'mAnswerid' on 'class
com.dieutek.examsoft.question.CreateQuestionAction: Error setting
expression 'mAnswerid' with value ['26', ]

17:58:54,085 ERROR
[com.opensymphony.xwork2.interceptor.ParametersInterceptor]
(http--127.0.0.1-8080-6) Developer Notification (set struts.devMode to
false to disable this message):
Unexpected Exception caught setting 'mQuestionid' on 'class
com.dieutek.examsoft.question.CreateQuestionAction: Error setting
expression 'mQuestionid' with value ['3402', ]


I'm Getting the above error while getting value from two Hidden Fields into
a form Action. I have also tried these two fields with textfield too. But
Getting the same error.
I'm not using any Model driven Interface in my action. How i should proceed
with this?