Java. lang. classcastexception: org.apache.struts.action.actionmessageorg.apache.struts.taglib.html. errorstag. dostarttag (errorstag. java: 215) Org. apache. JSP. login_jsp. _ jspx_meth_html_005ferrors_005f0 (login_jsp.java: 173) Org. apache. JSP. login_jsp. _ jspx_meth_html_005fform_005f0 (login_jsp.java: 115) Org. apache. JSP. login_jsp. _ jspservice (login_jsp.java: 77) Org. apache. jasper. runtime. httpjspbase. service (httpjspbase. java: 98) javax. servlet. HTTP. httpservlet. service (httpservlet. java: 803) Org. apache. jasper. servlet. jspservletwrapper. service (jspservletwrapper. java: 331) Org. apache. jasper. servlet. jspservlet. servicejspfile (jspservlet. java: 329) Org. apache. jasper. servlet. jspservlet. service (jspservlet. java: 265) javax. servlet. HTTP. httpservlet. service (httpservlet. java: 803) Org. apache. struts. action. requestprocessor. doforward (requestprocessor. java: 1069) Org. apache. struts. action. requestprocessor. internalmodulerelativeforward (requestprocessor. java: 1012) Org. apache. struts. action. requestprocessor. processvalidate (requestprocessor. java: 980) Org. apache. struts. action. requestprocessor. process (requestprocessor. java: 255) Org. apache. struts. action. actionservlet. process (actionservlet. java: 1482) Org. apache. struts. action. actionservlet. dopost (actionservlet. java: 525) javax. servlet. HTTP. httpservlet. service (httpservlet. java: 710) javax. servlet. HTTP. httpservlet. service (httpservlet. java: 803)
Set
Actionerrors error = new actionerrors ();
If ("login". Equals (Status )){
If (this. ID = NULL | "". Equals (this. ID )){
Error. Add ("ID", newActionmessage("ID. null "));
}
}
This is
Actionerrors error = new actionerrors ();
If ("login". Equals (Status )){
If (this. ID = NULL | "". Equals (this. ID )){
Error. Add ("ID", newActionerror("ID. null "));
}
}
Actionerror is easier to use than actionmessage.