<action-mappings> <action path="/action" type="StrutsAction" name="form" scope="request" validate="false"> <forward name="forward" path="/test.jsp" />
</action> </action-mappings> <form-beans> <form-bean name="form" type="MyActionForm"/> </form-beans> Nicolas De Loof wrote: >Please give us your mapping (struts-config) for this "StrutsAction". > > > >>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]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>