struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Jerry" <tom.snow.je...@gmail.com>
Subject error
Date Wed, 03 Jan 2007 13:05:33 GMT
why do I get this error ?

java.lang.ClassCastException: org.apache.struts.validator.BeanValidatorForm
    at com.traveldesk.actions.MyRequestAction.AddRequest(
MyRequestAction.java:49)

public ActionForward AddRequest(...)
{
    SubmitRequestForm submitRequestForm = (SubmitRequestForm)form;

}


public class SubmitRequestForm extends ValidatorForm
{
  ......
}

SInce because SubmitRequestForm is of ValidatorForm type, I cant use
(SubmitRequestForm)form ???? Please help.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message