could u give info on sturts-config file
siraj
----- Original Message -----
From: Thorsten Maus <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 2:43 PM
Subject: Re: class cast exception
> Hi there...
>
> I posted a question on a class cast exception yesterday....and Im not
> getting any further..
>
> I give you the important code on the next lines...and hopefully your
> able to help me
>
> entry in struts-config
> ===============
> <form-bean name="SimpleForm"
> type="de.jamba.b2b.tmotion.action.web.MyActionForm"/>
>
> form - bean
> ==========
> public class MyActionForm extends ActionForm {
>
> private String param1;
>
> public String getParam1(){
> return param1;
> }
>
> public void setParam1(String param){
> this.param1=param;
> }
>
>
> }
>
> action
> =====
>
> 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");
> }
>
> }
>
>
> When connecting to the action (action.do) I get a class cast
exception......
> and I dont know why..
>
> any help would be appreciated...
>
> (** have seen starwars this night ... **)
>
>
> --
> 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]>