nobody do like this?
 who have a good idea?

 On 9/7/05, fenris <[EMAIL PROTECTED]> wrote: 
> 
> 
> oh , yes ,I know where I am wrong .
>   I don't set the parameter's value for the new ActionForm which is 
> reference to the new URL.(the new action).
>  So I must to find the new form with the URL.
>  Now I find that , I must use the RequestProcessor.java 's function to 
> find it . But , the function I used in the RequestProcessor.java is 
> protected.
> For example :
> GeneralActionServlet s = (GeneralActionServlet)getServlet();
> RequestProcessor processor = s.getProcessor ();
> String path = "/a/b";
> ActionMapping mapping = (ActionMapping 
> )processor.processMapping(m_request, m_response, path); 
> GeneralActionForm f = 
> (GeneralActionForm)processor.processActionForm(m_request, m_response, 
> mapping);
>  So I must subclass the RequestProcessor.java to create a new function to 
> get the actionForm according to the new URL.
>  But I think this will destroy the structure.
>  Are there any other method?
>  thank you .
>    On 9/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: 
> > 
> > fenris <[EMAIL PROTECTED]> wrote on 09/06/2005 02:13:44 AM: 
> > 
> > > In my sub class for the action.java , I want to return a ActionForward
> > > created by myself (use new ActionForward(path)) in the function 
> > execute.
> > 
> > > (because I want forward a URL which is not declared in the 
> > > struts-config.xml. can I ? )
> > 
> > Yes, you can do this.
> > 
> > > But it throw a Exception.
> > 
> > What exception are you getting? Can you send us the code you have?
> > 
> > > I don't know why ?
> > 
> > Geeta 
> > 
> > 
>

Reply via email to