Is MyActionForm the name (form-bean) for the <action on struts-config.xml
file ?
<form-bean name="MyActionFormBean" type="path.to.MyActionForm"/>
<action ...
name = "MyActionFormBean"
-----Original Message-----
From: Thorsten Maus [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 9:10 AM
To: struts-user
Subject: class cast exception
hi there ...
i always get a class cast excpetion when trying to cast the form-class
is there anybody who is able to tell me what is wrong in my form-class ????
public class StrutsAction extends Action{
public StrutsAction() {
}
public ActionForward perform(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{
MyActionForm myActionForm = (MyActionForm) form;
//myActionForm.setParam1("_new value");
return mapping.findForward("forward");
}
}
public class MyActionForm extends ActionForm {
private String param1;
public String getParam1(){
return param1;
}
public void setParam1(String param){
this.param1=param;
}
}
thanks in advance
thorsten
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>