public ActionForward AddRequest(ActionMapping mapping,
           ActionForm form,
           HttpServletRequest request,
           HttpServletResponse response)throws Exception
{
       ................
}

Laurie.. hope this is clear to you ?

On 1/8/07, Laurie Harper <[EMAIL PROTECTED]> wrote:

Tom Jerry wrote:
> why am I not getting any reply ?

In general, because you asked a question nobody could answer. The best
thing to do then is to try and re-formulate your question and/or provide
additional info. In this case, the code you submitted isn't adequate to
diagnose the problem.

- what are the arguments to the AddRequest method?
- how is that method called?
- what is the actual type for the 'form' parameter?
- what does your action mapping look like for the action (?) containing
the AddRequest method?

L.

>
> On 1/3/07, Tom Jerry <[EMAIL PROTECTED]> wrote:
>>
>> 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.
>>
>>
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to